summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/MAKEDIFFS
blob: 3b87683c5d5f9afb8f77336ede5f280e7af45d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# MAKEDIFFS.sh: Make context diffs for the csh sources
#
# $Id: MAKEDIFFS,v 3.0 1991/07/04 21:57:47 christos Exp $
XINUDIR=/usr/share/src/mtXinu/bin/csh
BSDDIR=/usr/share/src/mtXinu/BSD/bin/csh
TAHOEDIR=/usr/share/src/mtXinu/TAHOE/bin/csh
RENODIR=/usr/share/src/mtXinu/RENO/bin/csh
TCSHDIR=`pwd`
case "x$1" in
xxinu)
    CSHDIR=$XINUDIR;;
xbsd)
    CSHDIR=$BSDDIR;;
xtahoe)
    CSHDIR=$TAHOEDIR;;
xreno)
    CSHDIR=$RENODIR;;
x*)
    echo "Usage: `basename $0` [bsd|tahoe|xinu|reno]";exit 1;;
esac
DIFF1='sh.c sh.char.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.exp.c sh.file.c'
DIFF2='sh.func.c sh.glob.c sh.hist.c sh.init.c sh.lex.c sh.misc.c sh.parse.c sh.print.c'
DIFF3='sh.proc.c sh.sem.c sh.set.c sh.time.c sh.char.h sh.dir.h sh.h sh.local.h sh.proc.h'

for i in $DIFF1
do
    diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.1

for i in $DIFF2
do
    diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.2

for i in $DIFF3
do
    diff -c $CSHDIR/$i $TCSHDIR/$i
done > DIFFS.3
exit 0
OpenPOWER on IntegriCloud