Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/scripts preserve the original logic if we d...



details:   https://anonhg.NetBSD.org/src/rev/ffdfb4c71d9d
branches:  trunk
changeset: 372623:ffdfb4c71d9d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 13 18:27:45 2022 +0000

description:
preserve the original logic if we don't have MKREPRO_TIMESTAMP, use consistent
version string with other builds.

diffstat:

 external/bsd/ntp/scripts/mkver |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 8867d22fbd73 -r ffdfb4c71d9d external/bsd/ntp/scripts/mkver
--- a/external/bsd/ntp/scripts/mkver    Tue Dec 13 18:15:29 2022 +0000
+++ b/external/bsd/ntp/scripts/mkver    Tue Dec 13 18:27:45 2022 +0000
@@ -32,8 +32,15 @@
    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



Home | Main Index | Thread Index | Old Index