mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 13:10:04 -05:00
check that version numbers agree
This commit is contained in:
parent
dca47ac5c9
commit
c6ff23fc9a
@ -17,7 +17,26 @@ Options:
|
|||||||
--unsigned"
|
--unsigned"
|
||||||
|
|
||||||
PROJECT=fractorium
|
PROJECT=fractorium
|
||||||
VERSION=$(cat ./debian/changelog | head -n 1 | sed 's/^'$PROJECT' (\([^-]\+\)-.*/\1/')
|
|
||||||
|
changelogVersion=$(cat ./debian/changelog | head -n 1 | sed 's/^'$PROJECT' (\([^-]\+\)-.*/\1/')
|
||||||
|
emberVersion=$(grep '#define EMBER_VERSION' ./Source/Ember/EmberDefines.h | sed 's/^.*EMBER_VERSION "\([^"]\+\)".*/\1/')
|
||||||
|
|
||||||
|
a=$(echo -n "$changelogVersion" | sed 's/[a-z]//g')
|
||||||
|
b=$(echo -n "$emberVersion" | sed 's/[a-z]//g')
|
||||||
|
|
||||||
|
if [[ "$a" != "$b" ]]; then
|
||||||
|
echo "Error: Different version numbers were found. Please update the correct file,
|
||||||
|
the version numbers should agree up to the digits in:
|
||||||
|
|
||||||
|
$changelogVersion
|
||||||
|
$emberVersion
|
||||||
|
|
||||||
|
./debian/changelog : $a
|
||||||
|
./Source/Ember/EmberDefines.h : $b"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION=$changelogVersion
|
||||||
PROJECT_ROOT=$PWD
|
PROJECT_ROOT=$PWD
|
||||||
PPA_DIR="$HOME/PPA/$PROJECT-$VERSION"
|
PPA_DIR="$HOME/PPA/$PROJECT-$VERSION"
|
||||||
TAR_NAME="$PROJECT-$VERSION.tar.gz"
|
TAR_NAME="$PROJECT-$VERSION.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user