Create version file in bootstrap

It is being used in the build process
This commit is contained in:
Wouter Wijsman
2024-10-11 14:33:01 +02:00
parent e680457a60
commit 65b82e3742
3 changed files with 5 additions and 7 deletions

View File

@@ -36,12 +36,6 @@ msg() {
[ $quiet -eq 0 ] && echo $1
}
if [ ! -f $top_srcdir/VERSION ]; then
echo "${progname}:"
echo " Installation problem: Can't find file VERSION"
exit 1
fi
while [ $# -gt 0 ]; do
case $1 in
-h|--help)
@@ -64,6 +58,9 @@ while [ $# -gt 0 ]; do
esac
done
# Create version file used while building
date +"%Y-%m-%d" > $top_srcdir/VERSION
# default mode is generation
if [ $generate -eq 1 ]; then
msg "Running aclocal:"