From 550095a5d0c563a66c67068d9fcb675962a27f12 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 6 Dec 1995 09:52:54 +0000 Subject: [PATCH] Removed Version.c --- distr/How_To | 3 ++- distr/dwalk | 6 ------ distr/mkd | 30 ------------------------------ distr/mktree | 20 +++++++++++++++++--- lang/cem/cemcom.ansi/.distr | 1 - lang/cem/cemcom.ansi/Makefile | 5 ----- lang/cem/cemcom.ansi/proto.make | 1 - lang/cem/cemcom/.distr | 1 - lang/cem/cemcom/Makefile | 5 ----- lang/cem/cemcom/proto.make | 1 - lang/m2/comp/.distr | 1 - lang/m2/comp/Makefile | 5 ----- lang/m2/comp/proto.make | 2 +- lang/m2/m2mm/.distr | 1 - lang/m2/m2mm/Makefile | 5 ----- lang/m2/m2mm/proto.make | 2 +- lang/pc/comp/.distr | 1 - lang/pc/comp/Makefile | 5 ----- util/cpp/.distr | 1 - util/cpp/Makefile | 5 ----- util/cpp/proto.make | 6 ++---- 21 files changed, 23 insertions(+), 84 deletions(-) delete mode 100644 lang/cem/cemcom.ansi/Makefile delete mode 100644 lang/cem/cemcom/Makefile delete mode 100644 lang/m2/comp/Makefile delete mode 100644 lang/m2/m2mm/Makefile delete mode 100644 lang/pc/comp/Makefile delete mode 100644 util/cpp/Makefile diff --git a/distr/How_To b/distr/How_To index 737301839..b9937c6dd 100644 --- a/distr/How_To +++ b/distr/How_To @@ -12,7 +12,8 @@ these files. When all this is correct, use the shell script mktree the extract the distribution from the EM tree. - sh mktree destination_tree repository_tree > destination_tree/Versions 2>f.attf + sh mktree destination_tree repository_tree 2>f.attf +Use the "cvs rtag" command to give the distribution a name first! Make sure that the destination tree exists and is empty! Failing to do that will almost certainly result in a welter of error messages. diff --git a/distr/dwalk b/distr/dwalk index d43436e16..6db9f0e02 100755 --- a/distr/dwalk +++ b/distr/dwalk @@ -1,10 +1,4 @@ : ${CDIR=.} -if [ $# = 1 ] -then - ${DD-:} $CDIR $1 -else - ${DD-:} $CDIR -fi ${DF-:} $CDIR .distr if test ! -r $DESTDIR/$CDIR/.distr then diff --git a/distr/mkd b/distr/mkd index 4cba1adf0..e69de29bb 100755 --- a/distr/mkd +++ b/distr/mkd @@ -1,30 +0,0 @@ -case $1 in -.) ;; -*) if [ -d $DESTDIR/$1 ] - then : - else mkdir $DESTDIR/$1 - fi - ;; -esac -p=$REPDIR/$1 -dir=$1 -if [ $# = 2 ] -then - if [ -f $2 ] - then - set `fgrep "$dir " $2` - fi -fi -cd $DESTDIR/$dir -if [ $# = 2 ] -then - RV $p $2 > /dev/null 2>&1 - echo "$dir $2" -else - if `CV $p > /dev/null 2>&1` - then - echo "$dir `RC -i`" - else - echo "-- $dir CV failed for some reason" 1>&2 - fi -fi diff --git a/distr/mktree b/distr/mktree index 599ef7df6..037fa4086 100644 --- a/distr/mktree +++ b/distr/mktree @@ -16,12 +16,26 @@ case $2 in /*) REPDIR=$2 ;; *) REPDIR=`pwd`/$2 ;; esac +# DD=$DDIR/mkd +# export DD +mkdir -p $DESTDIR +CVSROOT=/usr/proj/em/Repositories +export CVSROOT +cd $DESTDIR +case $# in +3) + cvs checkout world -r $3 + ;; +2) + cvs checkout world + ;; +esac cd $REPDIR -DD=$DDIR/mkd DF=$DDIR/mkf DA=$DDIR/mka -export DDIR DESTDIR DD DF DA REPDIR -$DDIR/dwalk $3 +export DDIR DESTDIR DF DA REPDIR + +$DDIR/dwalk cd $DESTDIR find . -type d -print | xargs chmod "uog+rx" diff --git a/lang/cem/cemcom.ansi/.distr b/lang/cem/cemcom.ansi/.distr index f9c8bb27c..ba9bb3675 100644 --- a/lang/cem/cemcom.ansi/.distr +++ b/lang/cem/cemcom.ansi/.distr @@ -1,4 +1,3 @@ -Version.c proto.make proto.main LLlex.c diff --git a/lang/cem/cemcom.ansi/Makefile b/lang/cem/cemcom.ansi/Makefile deleted file mode 100644 index 61b6d9c60..000000000 --- a/lang/cem/cemcom.ansi/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK ANSI C compiler Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/lang/cem/cemcom.ansi/proto.make b/lang/cem/cemcom.ansi/proto.make index ea6197698..cfde681d2 100644 --- a/lang/cem/cemcom.ansi/proto.make +++ b/lang/cem/cemcom.ansi/proto.make @@ -20,7 +20,6 @@ GEN_G = tokenfile.g GFILES= $(GEN_G) $(SRC_G) SRC_C = \ - $(SRC_DIR)/Version.c \ $(SRC_DIR)/LLlex.c \ $(SRC_DIR)/LLmessage.c \ $(SRC_DIR)/arith.c \ diff --git a/lang/cem/cemcom/.distr b/lang/cem/cemcom/.distr index ef83b4cae..3a5a222af 100644 --- a/lang/cem/cemcom/.distr +++ b/lang/cem/cemcom/.distr @@ -1,4 +1,3 @@ -Version.c proto.make proto.main LLlex.c diff --git a/lang/cem/cemcom/Makefile b/lang/cem/cemcom/Makefile deleted file mode 100644 index e44a9bf95..000000000 --- a/lang/cem/cemcom/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK C compiler Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/lang/cem/cemcom/proto.make b/lang/cem/cemcom/proto.make index 72576375c..0df00cfeb 100644 --- a/lang/cem/cemcom/proto.make +++ b/lang/cem/cemcom/proto.make @@ -20,7 +20,6 @@ GEN_G = tokenfile.g GFILES= $(GEN_G) $(SRC_G) SRC_C = \ - $(SRC_DIR)/Version.c \ $(SRC_DIR)/LLlex.c \ $(SRC_DIR)/LLmessage.c \ $(SRC_DIR)/arith.c \ diff --git a/lang/m2/comp/.distr b/lang/m2/comp/.distr index 8d7679631..6340fa61b 100644 --- a/lang/m2/comp/.distr +++ b/lang/m2/comp/.distr @@ -6,7 +6,6 @@ proto.main BigPars SmallPars SYSTEM.h -Version.c casestat.C char.tab chk_expr.c diff --git a/lang/m2/comp/Makefile b/lang/m2/comp/Makefile deleted file mode 100644 index 5df3de7f5..000000000 --- a/lang/m2/comp/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK Modula-2 compiler Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/lang/m2/comp/proto.make b/lang/m2/comp/proto.make index 84d488c1b..9ccef6adf 100644 --- a/lang/m2/comp/proto.make +++ b/lang/m2/comp/proto.make @@ -26,7 +26,7 @@ SRC_C = $(SRC_DIR)/LLlex.c $(SRC_DIR)/LLmessage.c $(SRC_DIR)/error.c \ $(SRC_DIR)/typequiv.c $(SRC_DIR)/node.c $(SRC_DIR)/cstoper.c \ $(SRC_DIR)/chk_expr.c $(SRC_DIR)/options.c $(SRC_DIR)/walk.c \ $(SRC_DIR)/desig.c $(SRC_DIR)/code.c $(SRC_DIR)/lookup.c \ - $(SRC_DIR)/Version.c $(SRC_DIR)/stab.c + $(SRC_DIR)/stab.c GEN_C = tokenfile.c program.c declar.c expression.c statement.c \ symbol2str.c char.c Lpars.c casestat.c tmpvar.c scope.c next.c CFILES= $(SRC_C) $(GEN_C) diff --git a/lang/m2/m2mm/.distr b/lang/m2/m2mm/.distr index 65b9da72a..3a8bc4308 100644 --- a/lang/m2/m2mm/.distr +++ b/lang/m2/m2mm/.distr @@ -28,4 +28,3 @@ program.g statement.g tokenname.c tokenname.h -Version.c diff --git a/lang/m2/m2mm/Makefile b/lang/m2/m2mm/Makefile deleted file mode 100644 index faf53f693..000000000 --- a/lang/m2/m2mm/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK Modula-2 Makefile generator Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/lang/m2/m2mm/proto.make b/lang/m2/m2mm/proto.make index 13ab2f2f2..5af7d4f62 100644 --- a/lang/m2/m2mm/proto.make +++ b/lang/m2/m2mm/proto.make @@ -22,7 +22,7 @@ GFILES= $(GEN_G) $(SRC_G) SRC_C = $(SRC_DIR)/LLlex.c $(SRC_DIR)/LLmessage.c $(SRC_DIR)/error.c \ $(SRC_DIR)/main.c $(SRC_DIR)/lib.c $(SRC_DIR)/tokenname.c \ $(SRC_DIR)/idf.c $(SRC_DIR)/input.c $(SRC_DIR)/misc.c \ - $(SRC_DIR)/options.c $(SRC_DIR)/Version.c + $(SRC_DIR)/options.c GEN_C = tokenfile.c program.c declar.c expression.c statement.c \ symbol2str.c char.c Lpars.c CFILES= $(SRC_C) $(GEN_C) diff --git a/lang/pc/comp/.distr b/lang/pc/comp/.distr index 4dcfaee85..dbbee8684 100644 --- a/lang/pc/comp/.distr +++ b/lang/pc/comp/.distr @@ -4,7 +4,6 @@ LLmessage.c proto.make proto.main Parameters -Version.c body.c casestat.C char.tab diff --git a/lang/pc/comp/Makefile b/lang/pc/comp/Makefile deleted file mode 100644 index 5aa6f2eb5..000000000 --- a/lang/pc/comp/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK Pascal compiler Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/util/cpp/.distr b/util/cpp/.distr index 949bf8260..53c19ae1f 100644 --- a/util/cpp/.distr +++ b/util/cpp/.distr @@ -32,4 +32,3 @@ scan.c skip.c tokenname.c cpp.6 -Version.c diff --git a/util/cpp/Makefile b/util/cpp/Makefile deleted file mode 100644 index 897971d9a..000000000 --- a/util/cpp/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -distr: - echo '#ifndef lint' > Version.c - echo 'char Version[] = "ACK C preprocessor Version XXX";' | \ - sed "s/XXX/`RC -i`/" >> Version.c - echo '#endif' >> Version.c diff --git a/util/cpp/proto.make b/util/cpp/proto.make index bcd829d45..52a04ca6f 100644 --- a/util/cpp/proto.make +++ b/util/cpp/proto.make @@ -42,13 +42,13 @@ LOBJ = tokenfile.$(SUF) expression.$(SUF) Lpars.$(SUF) CSRC = $(SRC_DIR)/LLlex.c $(SRC_DIR)/LLmessage.c $(SRC_DIR)/ch7bin.c \ $(SRC_DIR)/ch7mon.c $(SRC_DIR)/domacro.c $(SRC_DIR)/error.c \ $(SRC_DIR)/idf.c $(SRC_DIR)/init.c $(SRC_DIR)/input.c \ - $(SRC_DIR)/main.c $(SRC_DIR)/options.c $(SRC_DIR)/Version.c \ + $(SRC_DIR)/main.c $(SRC_DIR)/options.c \ $(SRC_DIR)/preprocess.c $(SRC_DIR)/replace.c $(SRC_DIR)/scan.c \ $(SRC_DIR)/skip.c $(SRC_DIR)/tokenname.c $(SRC_DIR)/next.c \ $(SRC_DIR)/expr.c COBJ = LLlex.$(SUF) LLmessage.$(SUF) ch7bin.$(SUF) ch7mon.$(SUF) \ domacro.$(SUF) error.$(SUF) idf.$(SUF) init.$(SUF) input.$(SUF) \ - main.$(SUF) options.$(SUF) Version.$(SUF) \ + main.$(SUF) options.$(SUF) \ preprocess.$(SUF) replace.$(SUF) scan.$(SUF) skip.$(SUF) \ tokenname.$(SUF) next.$(SUF) expr.$(SUF) @@ -253,8 +253,6 @@ options.$(SUF): $(SRC_DIR)/macro.h options.$(SUF): $(SRC_DIR)/class.h options.$(SUF): ./idfsize.h options.$(SUF): $(TARGET_HOME)/modules/h/alloc.h -Version.$(SUF): $(SRC_DIR)/Version.c - $(CC) -c $(CFLAGS) $(SRC_DIR)/Version.c preprocess.$(SUF): $(SRC_DIR)/preprocess.c $(CC) -c $(CFLAGS) $(SRC_DIR)/preprocess.c preprocess.$(SUF): ./line_prefix.h