source: trunk/third/xntp/scripts/mkversion @ 10832

Revision 10832, 395 bytes checked in by brlewis, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10831, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh -
2PROG=${1-UNKNOWN}
3VERSION=${2-UNKNOWN}
4if [ ! -f .version ]; then
5  echo 0 > .version
6fi
7
8RUN="`cat .version`"
9RUN="`expr $RUN + 1`"
10echo $RUN > .version
11
12DATE="`date`"
13
14echo "Version $PROG ${VERSION} ${DATE} (${RUN})";
15
16rm -f version.c
17cat > version.c << -EoF-
18/*
19 * version file for $PROG
20 */
21#include <config.h>
22const char * Version = "$PROG 3-${VERSION} ${DATE} (${RUN})";
23-EoF-
Note: See TracBrowser for help on using the repository browser.