/[hyperestraier]/upstream/0.5.1/lab/diffcheck
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/0.5.1/lab/diffcheck

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Fri Jul 29 21:56:53 2005 UTC (18 years, 9 months ago) by dpavlin
File size: 928 byte(s)
import of HyperEstraier 0.5.1

1 #! /bin/sh
2
3 #================================================================
4 # diffcheck
5 # List files different from ones of another version.
6 #================================================================
7
8
9 # set variables
10 LANG=C ; export LANG
11 LC_ALL=C ; export LC_ALL
12 progname="diffcheck"
13 progexts='\.in|\.h|\.c|\.cc|\.cpp|\.cxx|\.java|\.pl|\.pm|\.pod|\.rb|\.rd'
14 docexts='\.[1-9]|spex\.html|\spex-ja\.html|\.txt'
15 regex="($progexts|$docexts)\$"
16
17
18 # check arguments
19 if [ $# != 1 ]
20 then
21 printf '%s: usage: %s directory_of_oldversion\n' "$progname" "$progname" 1>&2
22 exit 1
23 fi
24
25
26 # diff files
27 find . -type f | egrep $regex |
28 while read file
29 do
30 old=`printf '%s\n' "$file" | sed 's/^\.\///'`
31 printf 'Checking %s and %s ... ' "$file" "$1/$old"
32 res=`diff -q "$file" "$1/$old"`
33 if [ -z "$res" ]
34 then
35 printf 'same\n'
36 else
37 printf '### !!! DIFFERENT !!! ###\n'
38 fi
39 done
40
41
42 # exit normally
43 exit 0
44
45
46
47 # END OF FILE

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26