Module Name:    src
Committed By:   martin
Date:           Tue Dec 13 18:15:29 UTC 2022

Modified Files:
        src/external/bsd/ntp/scripts: mkver

Log Message:
When doing reproducible builds, don't import a "run" number in the
ntp tools config version files.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/bsd/ntp/scripts/mkver

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/scripts/mkver
diff -u src/external/bsd/ntp/scripts/mkver:1.16 src/external/bsd/ntp/scripts/mkver:1.17
--- src/external/bsd/ntp/scripts/mkver:1.16	Sun Oct  9 21:41:05 2022
+++ src/external/bsd/ntp/scripts/mkver	Tue Dec 13 18:15:29 2022
@@ -35,11 +35,16 @@ fi
 if [ ! -f .version ]; then
   echo 0 > .version
 fi
-RUN="`cat .version`"
-RUN="`expr $RUN + 1`"
-echo $RUN > .version
 
-ConfStr="$ConfStr (${RUN})"
+if [ -f "$ifile" ]; then
+  # NetBSD MKREPRO: Don't embed current date/time/run number
+else
+  RUN="`cat .version`"
+  RUN="`expr $RUN + 1`"
+  echo $RUN > .version
+
+  ConfStr="$ConfStr (${RUN})"
+fi
 
 echo "Version <${ConfStr}>";
 

Reply via email to