File: genpatch

package info (click to toggle)
glimpse 4.18.7-12
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,832 kB
  • sloc: ansic: 37,606; makefile: 847; sh: 242; perl: 142
file content (20 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $Id: genpatch,v 1.1 1999/11/03 20:36:24 golda Exp $

PATH=/bin:/usr/bin:/usr/local/bin ; export PATH
ROOT=${1-.}
RLOGFLAGS="-L -R"

tmpfile="/tmp/findco$$"

for rcsdir in `find ${ROOT} -name RCS -type d -print` ; do
  rlog ${RLOGFLAGS} ${rcsdir}/* > ${tmpfile}
  if [ -s "${tmpfile}" ] ; then
    echo "# Files in ${rcsdir}:"
    for f in `cat ${tmpfile}` ; do
       f2=`echo $f | sed -e 's@RCS/@@' -e 's@,v$@@'`
       rcsdiff -c ${f2}
    done
  fi
done
rm -f ${tmpfile}