mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
16 lines
338 B
Bash
Executable File
16 lines
338 B
Bash
Executable File
#!/bin/sh
|
|
|
|
rm -f version.h
|
|
echo "#ifndef VERSION_H" > version.h
|
|
echo "#define VERSION_H 1" >> version.h
|
|
|
|
if [ -f version.txt ]; then
|
|
ver=`cat version.txt`
|
|
echo "#define PROGRAM_VERSION_STRING \"$ver\"" >> version.h
|
|
else
|
|
echo "#define PROGRAM_VERSION_STRING \"DEVELOPMENT\"" >> version.h
|
|
fi
|
|
|
|
echo "#endif /* VERSION_H */" >> version.h
|
|
|