]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update bootstrap for Unity
authorHarlan Stenn <stenn@ntp.org>
Sat, 13 Jun 2015 20:32:16 +0000 (16:32 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sat, 13 Jun 2015 20:32:16 +0000 (16:32 -0400)
bk: 557c9350L6JKJsn-xylezWHSoB6fjw

bootstrap

index 2368af3a64453344f875f985e59edf6c3f41c4f5..2808b24e4c96d08a19cea588a3045c3b1a415803 100755 (executable)
--- 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/