Module Name: src
Committed By: christos
Date: Tue Dec 13 18:27:45 UTC 2022
Modified Files:
src/external/bsd/ntp/scripts: mkver
Log Message:
preserve the original logic if we don't have MKREPRO_TIMESTAMP, use consistent
version string with other builds.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 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.17 src/external/bsd/ntp/scripts/mkver:1.18
--- src/external/bsd/ntp/scripts/mkver:1.17 Tue Dec 13 13:15:29 2022
+++ src/external/bsd/ntp/scripts/mkver Tue Dec 13 13:27:45 2022
@@ -32,8 +32,15 @@ else
fi
fi
-if [ ! -f .version ]; then
- echo 0 > .version
+if [ -n "$MKREPRO_TIMESTAMP" ]; then
+ RUN=1
+else
+ if [ ! -f .version ]; then
+ echo 0 > .version
+ fi
+ RUN="`cat .version`"
+ RUN="`expr $RUN + 1`"
+ echo $RUN > .version
fi
if [ -f "$ifile" ]; then