Removed Version.c

This commit is contained in:
ceriel 1995-12-06 09:52:54 +00:00
parent f7157ca24c
commit 550095a5d0
21 changed files with 23 additions and 84 deletions

View file

@ -12,7 +12,8 @@ these files.
When all this is correct, use the shell script mktree the extract When all this is correct, use the shell script mktree the extract
the distribution from the EM tree. the distribution from the EM tree.
sh mktree destination_tree repository_tree > destination_tree/Versions 2>f.attf sh mktree destination_tree repository_tree <distrname> 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! Make sure that the destination tree exists and is empty!
Failing to do that will almost certainly result in a welter of Failing to do that will almost certainly result in a welter of
error messages. error messages.

View file

@ -1,10 +1,4 @@
: ${CDIR=.} : ${CDIR=.}
if [ $# = 1 ]
then
${DD-:} $CDIR $1
else
${DD-:} $CDIR
fi
${DF-:} $CDIR .distr ${DF-:} $CDIR .distr
if test ! -r $DESTDIR/$CDIR/.distr if test ! -r $DESTDIR/$CDIR/.distr
then then

View file

@ -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

View file

@ -16,12 +16,26 @@ case $2 in
/*) REPDIR=$2 ;; /*) REPDIR=$2 ;;
*) REPDIR=`pwd`/$2 ;; *) REPDIR=`pwd`/$2 ;;
esac 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 cd $REPDIR
DD=$DDIR/mkd
DF=$DDIR/mkf DF=$DDIR/mkf
DA=$DDIR/mka DA=$DDIR/mka
export DDIR DESTDIR DD DF DA REPDIR export DDIR DESTDIR DF DA REPDIR
$DDIR/dwalk $3
$DDIR/dwalk
cd $DESTDIR cd $DESTDIR
find . -type d -print | xargs chmod "uog+rx" find . -type d -print | xargs chmod "uog+rx"

View file

@ -1,4 +1,3 @@
Version.c
proto.make proto.make
proto.main proto.main
LLlex.c LLlex.c

View file

@ -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

View file

@ -20,7 +20,6 @@ GEN_G = tokenfile.g
GFILES= $(GEN_G) $(SRC_G) GFILES= $(GEN_G) $(SRC_G)
SRC_C = \ SRC_C = \
$(SRC_DIR)/Version.c \
$(SRC_DIR)/LLlex.c \ $(SRC_DIR)/LLlex.c \
$(SRC_DIR)/LLmessage.c \ $(SRC_DIR)/LLmessage.c \
$(SRC_DIR)/arith.c \ $(SRC_DIR)/arith.c \

View file

@ -1,4 +1,3 @@
Version.c
proto.make proto.make
proto.main proto.main
LLlex.c LLlex.c

View file

@ -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

View file

@ -20,7 +20,6 @@ GEN_G = tokenfile.g
GFILES= $(GEN_G) $(SRC_G) GFILES= $(GEN_G) $(SRC_G)
SRC_C = \ SRC_C = \
$(SRC_DIR)/Version.c \
$(SRC_DIR)/LLlex.c \ $(SRC_DIR)/LLlex.c \
$(SRC_DIR)/LLmessage.c \ $(SRC_DIR)/LLmessage.c \
$(SRC_DIR)/arith.c \ $(SRC_DIR)/arith.c \

View file

@ -6,7 +6,6 @@ proto.main
BigPars BigPars
SmallPars SmallPars
SYSTEM.h SYSTEM.h
Version.c
casestat.C casestat.C
char.tab char.tab
chk_expr.c chk_expr.c

View file

@ -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

View file

@ -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)/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)/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)/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 \ 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 symbol2str.c char.c Lpars.c casestat.c tmpvar.c scope.c next.c
CFILES= $(SRC_C) $(GEN_C) CFILES= $(SRC_C) $(GEN_C)

View file

@ -28,4 +28,3 @@ program.g
statement.g statement.g
tokenname.c tokenname.c
tokenname.h tokenname.h
Version.c

View file

@ -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

View file

@ -22,7 +22,7 @@ GFILES= $(GEN_G) $(SRC_G)
SRC_C = $(SRC_DIR)/LLlex.c $(SRC_DIR)/LLmessage.c $(SRC_DIR)/error.c \ 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)/main.c $(SRC_DIR)/lib.c $(SRC_DIR)/tokenname.c \
$(SRC_DIR)/idf.c $(SRC_DIR)/input.c $(SRC_DIR)/misc.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 \ GEN_C = tokenfile.c program.c declar.c expression.c statement.c \
symbol2str.c char.c Lpars.c symbol2str.c char.c Lpars.c
CFILES= $(SRC_C) $(GEN_C) CFILES= $(SRC_C) $(GEN_C)

View file

@ -4,7 +4,6 @@ LLmessage.c
proto.make proto.make
proto.main proto.main
Parameters Parameters
Version.c
body.c body.c
casestat.C casestat.C
char.tab char.tab

View file

@ -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

View file

@ -32,4 +32,3 @@ scan.c
skip.c skip.c
tokenname.c tokenname.c
cpp.6 cpp.6
Version.c

View file

@ -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

View file

@ -42,13 +42,13 @@ LOBJ = tokenfile.$(SUF) expression.$(SUF) Lpars.$(SUF)
CSRC = $(SRC_DIR)/LLlex.c $(SRC_DIR)/LLmessage.c $(SRC_DIR)/ch7bin.c \ 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)/ch7mon.c $(SRC_DIR)/domacro.c $(SRC_DIR)/error.c \
$(SRC_DIR)/idf.c $(SRC_DIR)/init.c $(SRC_DIR)/input.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)/preprocess.c $(SRC_DIR)/replace.c $(SRC_DIR)/scan.c \
$(SRC_DIR)/skip.c $(SRC_DIR)/tokenname.c $(SRC_DIR)/next.c \ $(SRC_DIR)/skip.c $(SRC_DIR)/tokenname.c $(SRC_DIR)/next.c \
$(SRC_DIR)/expr.c $(SRC_DIR)/expr.c
COBJ = LLlex.$(SUF) LLmessage.$(SUF) ch7bin.$(SUF) ch7mon.$(SUF) \ COBJ = LLlex.$(SUF) LLmessage.$(SUF) ch7bin.$(SUF) ch7mon.$(SUF) \
domacro.$(SUF) error.$(SUF) idf.$(SUF) init.$(SUF) input.$(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) \ preprocess.$(SUF) replace.$(SUF) scan.$(SUF) skip.$(SUF) \
tokenname.$(SUF) next.$(SUF) expr.$(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): $(SRC_DIR)/class.h
options.$(SUF): ./idfsize.h options.$(SUF): ./idfsize.h
options.$(SUF): $(TARGET_HOME)/modules/h/alloc.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 preprocess.$(SUF): $(SRC_DIR)/preprocess.c
$(CC) -c $(CFLAGS) $(SRC_DIR)/preprocess.c $(CC) -c $(CFLAGS) $(SRC_DIR)/preprocess.c
preprocess.$(SUF): ./line_prefix.h preprocess.$(SUF): ./line_prefix.h