https://github.com/TakehideSoh/SAF
Tip revision: d26cc9f94a4f79c046ee0cdd3a127a44f7b443b6 authored by TakehideSoh on 23 June 2023, 07:02:26 UTC
Merge pull request #2 from TakehideSoh/dev
Merge pull request #2 from TakehideSoh/dev
Tip revision: d26cc9f
update-version.sh
#!/bin/sh
cd `dirname $0`
NEW="`cat ../VERSION`"
OLD="`awk '/define VERSION/{print \$4}' ../src/version.cpp|sed -e 's,\",,g'`"
if [ x"$OLD" = x"$NEW" ]
then
echo "same version '$NEW' in 'VERSION' and '../src/version.cpp'"
else
echo "found new version '$NEW' in '../VERSION'"
echo "updating old version '$OLD' in '../src/version.cpp'"
sed -i -e '/define VERSION/s,".*",'\""$NEW"\", ../src/version.cpp
fi
