1,4c1,5 < #! /bin/csh xmkmfnolog.csh < ## This updates configure.h (copy from configurenolog.h) < ## (which #undefs LOG, BDELOG and GENLOG, then runs xmkmf -a. < ## xmkmflog.csh has the opposite option. --- > #!/bin/csh xmkmflog.csh > ## This updates configure.h (copy from configurelog.h > ## which #defines LOG=1, BDELOG, GENLOG) then runs xmkmf -a. > ## (xmkmfnolog.csh copies the opposite configurenolog.h option.) > ## TBD: Handle error conditions that make this fail silently below: 8c9 < ## Copies specialized Makefiles back and runs make on them in 3 directories. --- > ## Copies specialized Makefiles back and runs make on them in 3 dir'ys. 14,15c15,16 < ## pre-condition: In top bde directory $RBGB < ## configurenolog replaces configurelog - RJL051019 --- > ## pre-condition: In top bde directory $RBGB (or any, later) > ## configurelog replaces configurenolog - RJL051019 17,20c18,21 < ## $Log: xmkmfnolog.csh,v $ < ## Revision 1.3 2005/10/25 18:00:58 lechner < ## Reduced complexity of testing for existing Makefiles. Now, < ## always run xmkmf -a and make; three Makefiles are moved and renamed. --- > ## $Log: xmkmflog.csh,v $ > ## Revision 1.3 2005/10/25 17:58:30 lechner > ## Rev. 051024: removed dependency and maintenance of pr_util/Makefile. > ## Always runs xmkmf -a and make; three Makefiles are moved and renamed. 23c24 < ## Revision 1.2 2005/10/23 21:00:44 lechner --- > ## Revision 1.2 2005/10/23 21:00:59 lechner 26,30c27 < ############################################### < < < echo "Building Makefiles withOUT the log/replay option." < cp configurenolog.h configure.h --- > ########################################## 32c29,35 < echo 'xmkmf -a making 3 new MakefileNolog_$HOSTTYPE files:' --- > ## Rev. 051024: removed dependency and maintenance of pr_util/Makefile. > ## Always runs xmkmf -a; three Makefiles are moved and renamed. > echo "xmkmflog.csh --> xmkmf -a building three Makefiles" > echo "\t\t in bde, src and pr_util_log" > ## (Imakefile{Nolog,Log} #includes configure.h) > cp configurelog.h configure.h > echo " Making 3 new Makefiles, saved to MakefileLog_$HOSTTYPE " 34,37d36 < mv Makefile MakefileNolog_$HOSTTYPE < mv src/Makefile src/MakefileNolog_$HOSTTYPE < mv pr_util_nolog/Makefile pr_util_nolog/MakefileNolog_$HOSTTYPE < ls -alg pr_util_nolog/Makefile pr_util_nolog/MakefileNolog_$HOSTTYPE 40,49c39,52 < echo "Copying MakefileNolog_$HOSTTYPE files to Makefiles" < cp -p MakefileNolog_$HOSTTYPE Makefile < ls-alg MakefileNolog_$HOSTTYPE Makefile < cp -p src/MakefileNolog_$HOSTTYPE src/Makefile < ls -alg src/MakefileNolog_$HOSTTYPE src/Makefile < cp -p pr_util_nolog/MakefileNolog_$HOSTTYPE pr_util_nolog/Makefile < ls -alg pr_util_nolog/MakefileNolog_$HOSTTYPE pr_util_nolog/Makefile < echo "Running make withOUT log/replay in $PWD" < echo "Running make without -DLOG in src and pr_util_nolog" < make --- > echo "Copying bde/MakefileNolog_$HOSTTYPE file to bde/Makefile" > cp -p Makefile MakefileLog_$HOSTTYPE > echo "Copying bde/*/MakefileNolog_$HOSTTYPE file to bde/*/Makefile" > ls -alg Makefile MakefileLog_$HOSTTYPE > cp -p src/Makefile src/MakefileLog_$HOSTTYPE > ls -alg src/Makefile src/MakefileLog_$HOSTTYPE > cp -p pr_util_log/Makefile pr_util_log/MakefileLog_$HOSTTYPE > ls -alg pr_util_log/Makefile pr_util_log/MakefileLog_$HOSTTYPE > > ##echo "Running gmake WITH log/replay in $PWD:" > ##echo "gmake -d -f MakefileLog_$(HOSTTYPE)" > ##gmake had ptoblems with inf loops and patterns. > echo "Running make -d -f MakefileLog_$HOSTTYPE" > make -d -f MakefileLog_$HOSTTYPE 50a54 > 52c56 < # But gmake can't use non-default MakefileNolog_$HOSTTYPE --- > # ImakefileNolog can't tell gmake to use non-default MakefileNolog_$HOSTTYPE 54,58c58,62 < mv executables/$HOSTTYPE/bdenolog.exe executables/$HOSTTYPE/bdenolog.bak < ln -s pr_util_nolog/$HOSTTYPE/bin/bde.exe executables/$HOSTTYPE/bdenolog.exe < echo "bde executable finished without log/replay." < echo "executables/$HOSTTYPE/bdenolog.exe is a sym-link " < echo " to pr_util_nolog/$HOSTTYPE/bin/bde.exe" --- > mv executables/$HOSTTYPE/bdelog.exe executables/$HOSTTYPE/bdelog.bak > ln -s pr_util_log/$HOSTTYPE/bin/bde.exe executables/$HOSTTYPE/bdelog.exe > echo "bdelog executable finished WITH log/replay." > echo "executables/$HOSTTYPE/bdelog.exe is a sym-link " > echo " to pr_util_log/$HOSTTYPE/bin/bde.exe" 60,61c64,65 < ls -alsg pr_util_nolog/$HOSTTYPE/bin/bde.exe < ls -alsg executables/$HOSTTYPE/bdenolog.exe --- > ls -alsg pr_util_log/$HOSTTYPE/bin/bde.exe > ls -alsg executables/$HOSTTYPE/bdelog.exe 63c67,68 < ls -alsg executables/$HOSTTYPE/bdenolog.bak --- > ls -alsg executables/$HOSTTYPE/bdelog.bak >