summaryrefslogtreecommitdiff
path: root/contrib/ntp/bootstrap
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-07-05 15:42:16 +0000
committerCy Schubert <cy@FreeBSD.org>2015-07-05 15:42:16 +0000
commit276da39af92f48350aa01091a2b8b3e735217eea (patch)
treefb96356e3ef85aaa8d1f5939a9decd315a7ca596 /contrib/ntp/bootstrap
parent31c98473c1337a238b00342edd7ef85dfb378e24 (diff)
parent873997f35a991eee09ed91148a0cf332360380da (diff)
downloadsrc-test2-276da39af92f48350aa01091a2b8b3e735217eea.tar.gz
src-test2-276da39af92f48350aa01091a2b8b3e735217eea.zip
Notes
Diffstat (limited to 'contrib/ntp/bootstrap')
-rwxr-xr-xcontrib/ntp/bootstrap41
1 files changed, 29 insertions, 12 deletions
diff --git a/contrib/ntp/bootstrap b/contrib/ntp/bootstrap
index 2368af3a6445..dcba5c7fa3a8 100755
--- a/contrib/ntp/bootstrap
+++ b/contrib/ntp/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/