From: Harlan Stenn Date: Sat, 13 Jun 2015 20:32:16 +0000 (-0400) Subject: Update bootstrap for Unity X-Git-Tag: NTP_4_3_41~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38674a9d8ca57f7d28d9f34e93113637ec60e751;p=thirdparty%2Fntp.git Update bootstrap for Unity bk: 557c9350L6JKJsn-xylezWHSoB6fjw --- diff --git a/bootstrap b/bootstrap index 2368af3a6..2808b24e4 100755 --- a/bootstrap +++ b/bootstrap @@ -50,6 +50,7 @@ AUTORECONF=${AUTORECONF:-autoreconf} # ;; # esac +## Old way # 20060629: HMS: Let's try checking in libopts and the autogen-generated files ## The copy for ntp... #rm -rf libopts* @@ -64,22 +65,34 @@ AUTORECONF=${AUTORECONF:-autoreconf} # tar -xvf - # mv libopts-*.*.* libopts ) -def_files=`find [B-Za-z]* -type f -name '*.def' -print | fgrep -v /SCCS/` -prog_opt_files=`grep -l '^prog.name' $def_files` +## EOOld way -## AutoGen stuff +## Unity test runners +# the ruby generator must be older than the test files. +# the test files must be older than the runner files. + +runner_files=`find [B-Za-z]* -type f -name 'run-test-*' -print | fgrep -v /SCCS/` +l= +lt= +lr= +for f in ${runner_files} +do + fb=`echo $f | sed -e 's/run-test-//'` + lt="$lt $fb" + lr="$lr $f" # Yes, lr and runner_files are eventually the same +done +touch $lt +echo "Touching <$lt>" +sleep 1 +touch $lr +echo "Touching <$lr>" -#incdir=${PWD}/include +## EOUnity test runners -#for f in ${prog_opt_files} -#do -# ( cd $(dirname ${f}) -# echo "Running autogen on $f..." -# autogen -L${incdir} $(basename ${f}) -# ) || exit 1 -#done +## AutoGen stuff -## Non-AutoGen stuff +def_files=`find [B-Za-z]* -type f -name '*.def' -print | fgrep -v /SCCS/` +prog_opt_files=`grep -l '^prog.name' $def_files` # touch the stuff generated by the opt files @@ -129,6 +142,8 @@ esac ## EOAutoGen stuff +## Yacc/bison files + # Yacc/bison files ntp_parser.[ch] so we don't require the tool if # ntp_parser.y hasn't been updated. At the same time, keyword-gen-utd # and ntp_keyword.h which are derived from ntp_parser.h and @@ -136,6 +151,8 @@ esac touch ntpd/ntp_parser.[ch] ntpd/keyword-gen-utd ntpd/ntp_keyword.h +## EOYacc/bison files + cp bincheck.mf sntp/ cp depsver.mf sntp/