PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/tcsh/MAKEDIFFS

https://bitbucket.org/freebsd/freebsd-head/
Shell | 41 lines | 33 code | 3 blank | 5 comment | 3 complexity | a1694caae52c899f91ec80976f845550 MD5 | raw file
 1#!/bin/sh
 2#
 3# MAKEDIFFS.sh: Make context diffs for the csh sources
 4#
 5# $tcsh: MAKEDIFFS,v 3.1 2006/03/02 18:46:44 christos Exp $
 6XINUDIR=/usr/share/src/mtXinu/bin/csh
 7BSDDIR=/usr/share/src/mtXinu/BSD/bin/csh
 8TAHOEDIR=/usr/share/src/mtXinu/TAHOE/bin/csh
 9RENODIR=/usr/share/src/mtXinu/RENO/bin/csh
10TCSHDIR=`pwd`
11case "x$1" in
12xxinu)
13    CSHDIR=$XINUDIR;;
14xbsd)
15    CSHDIR=$BSDDIR;;
16xtahoe)
17    CSHDIR=$TAHOEDIR;;
18xreno)
19    CSHDIR=$RENODIR;;
20x*)
21    echo "Usage: `basename $0` [bsd|tahoe|xinu|reno]";exit 1;;
22esac
23DIFF1='sh.c sh.char.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.exp.c sh.file.c'
24DIFF2='sh.func.c sh.glob.c sh.hist.c sh.init.c sh.lex.c sh.misc.c sh.parse.c sh.print.c'
25DIFF3='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'
26
27for i in $DIFF1
28do
29    diff -c $CSHDIR/$i $TCSHDIR/$i
30done > DIFFS.1
31
32for i in $DIFF2
33do
34    diff -c $CSHDIR/$i $TCSHDIR/$i
35done > DIFFS.2
36
37for i in $DIFF3
38do
39    diff -c $CSHDIR/$i $TCSHDIR/$i
40done > DIFFS.3
41exit 0