From 905907f304286b75f0b04f6ac19fb39ff3147341 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 1 Aug 1988 09:00:03 +0000 Subject: [PATCH] Modified for 4th distribution --- distr/Action | 10 ---------- distr/Action1 | 3 +++ distr/How_To | 2 +- distr/dwalk | 13 +++++++++++-- distr/mk_distr_syms | 39 +++++++++++++++++++++++++++++++++++++++ distr/mkd | 9 ++++++--- distr/mkf | 5 ----- distr/mktree | 6 +++--- 8 files changed, 63 insertions(+), 24 deletions(-) create mode 100755 distr/mk_distr_syms diff --git a/distr/Action b/distr/Action index ba518456b..0d076f6e0 100644 --- a/distr/Action +++ b/distr/Action @@ -7,10 +7,6 @@ end name "Pascal bootstrap files" dir lang/pc/pem end -name "C compiler makefile" -dir lang/cem/cemcom -action "cp AckMake makefile" -end name "LLgen bootstrap files" dir util/LLgen end @@ -25,9 +21,3 @@ name "h/em_path.h" dir first action "cp em_path.h.src ../h/em_path.h" end -name "create .distr file for interpreter" -dir util/int -end -name "create .distr file for interpreter docs" -dir doc/int -end diff --git a/distr/Action1 b/distr/Action1 index d1add76be..d923031f3 100644 --- a/distr/Action1 +++ b/distr/Action1 @@ -1,9 +1,12 @@ name "m68k2/cg bootstrap files" dir mach/m68k2/cg +action "make EMHOME=/proj/em/Work distr" end name "vax4/cg bootstrap files" dir mach/vax4/cg +action "make EMHOME=/proj/em/Work distr" end name "m68020/ncg bootstrap files" dir mach/m68020/ncg +action "make EMHOME=/proj/em/Work distr" end diff --git a/distr/How_To b/distr/How_To index 6386e0bd8..9a8ed7360 100644 --- a/distr/How_To +++ b/distr/How_To @@ -13,7 +13,7 @@ these files. When all this is correct, use the shell script mktree the extract the distribution from the EM tree. - cd ~em/Repositories ; sh ../Work/distr/mktree destination_tree >../Work/distr/f.attf 2>&1 + cd ~em/Repositories ; sh ../Work/distr/mktree destination_tree Distr4 >../Work/distr/f.attf 2>&1 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 d8754b992..045f204de 100755 --- a/distr/dwalk +++ b/distr/dwalk @@ -1,7 +1,16 @@ : ${CDIR=.} -${DD-:} $CDIR +if [ $# = 1 ] +then + ${DD-:} $CDIR $1 +else + ${DD-:} $CDIR +fi ${DF-:} $CDIR .distr if test ! -r $DESTDIR/$CDIR/.distr +then + ( cd $DESTDIR/$CDIR; make .distr ) >/dev/null 2>&1 +fi +if test ! -r $DESTDIR/$CDIR/.distr then echo ++ no .distr in $CDIR exit 0 @@ -14,7 +23,7 @@ do then CDIR=$CDIR/$i export CDIR - exec /proj/em/Work/distr/dwalk + exec /proj/em/Work/distr/dwalk $* else echo ++ Could not access $CDIR/$i fi diff --git a/distr/mk_distr_syms b/distr/mk_distr_syms new file mode 100755 index 000000000..2075f7597 --- /dev/null +++ b/distr/mk_distr_syms @@ -0,0 +1,39 @@ +: Utility to make a tree of symbolic links to source tree. +: Mount the source tree read-only, use this script, and then try installation. +case $# in +2) ;; +*) echo "Usage: $0 " 1>&2 + exit 1 + ;; +esac +if [ -f $1/.distr ] +then + for i in `cat $1/.distr` + do + if [ -d $1/$i ] + then + if mkdir $2/$i && $0 $1/$i $2/$i + then + : + else + exit 2 + fi + else + if [ -f $1/$i ] + then + if ln -s $1/$i $2/$i + then + : + else + exit 3 + fi + else + echo "Missing file $1/$i" 1>&2 + exit 4 + fi + fi + done +else + echo "No .distr file in $1" 1>&2 + exit 5 +fi diff --git a/distr/mkd b/distr/mkd index ecd5595b4..69e25f00c 100755 --- a/distr/mkd +++ b/distr/mkd @@ -5,11 +5,14 @@ case $1 in esac p=`pwd` cd $DESTDIR/$1 -if `RV $p $p/Distr4 > /dev/null 2>&1` +if [ $# = 2 ] && [ -f $p/$2 ] then - : + RV $p $p/$2 > /dev/null 2>&1 else - echo "-- $1 no Distr4 Save Record yet" + if [ $# = 2 ] + then + echo "-- $1 no $2 Save Record yet" + fi if `CV $p > /dev/null 2>&1` then : diff --git a/distr/mkf b/distr/mkf index 6a343d0a8..74a47dc54 100755 --- a/distr/mkf +++ b/distr/mkf @@ -9,8 +9,3 @@ then else echo ++ $1/$2 not present fi -case $2 in -LIST) if (test -r $DESTDIR/$1/`head -1 $DESTDIR/$1/LIST`) >/dev/null 2>&1 - then echo ++ LIST files must be in .distr before their libraries!!! - fi ;; -esac diff --git a/distr/mktree b/distr/mktree index 21128f648..2cf22f907 100644 --- a/distr/mktree +++ b/distr/mktree @@ -1,6 +1,6 @@ case $# in -1) ;; -*) echo $0 directory ; exit 1 ;; +1|2) ;; +*) echo $0 directory [ SVrecord ] ; exit 1 ;; esac DDIR=/proj/em/Work/distr case $1 in @@ -11,4 +11,4 @@ DD=$DDIR/mkd DF=$DDIR/mkf DA=$DDIR/mka export DESTDIR DD DF DA -$DDIR/dwalk +$DDIR/dwalk $2 -- 2.34.1