aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap41
1 files changed, 29 insertions, 12 deletions
diff --git a/bootstrap b/bootstrap
index 2368af3a6445..dcba5c7fa3a8 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-*' -print | fgrep -v /SCCS/`
+l=
+lt=
+lr=
+for f in ${runner_files}
+do
+ fb=`echo $f | sed -e 's/run-//'`
+ 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/