Update packaging script for Ubuntu
This commit is contained in:
@@ -10,14 +10,21 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get version (and check that the repository is clean)
|
# Get version (and check that the repository is clean)
|
||||||
VERSION=$(../get_version.sh --strict | sed 's/-git/./')
|
VERSION=$(../get_version.sh --strict)
|
||||||
if [ ! $? -eq 0 ]
|
if [ ! $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo >&2 "Error: get_version.sh failed!"
|
echo >&2 "Error: get_version.sh failed!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -f version.h
|
rm -f version.h
|
||||||
|
VERSION=$(git describe --exact-match 2>/dev/null | sed 's/^v//')
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
REPO="tint2"
|
||||||
|
else
|
||||||
VERSION="$(git show -s --pretty=format:%cI.%ct.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g').$MINOR"
|
VERSION="$(git show -s --pretty=format:%cI.%ct.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g').$MINOR"
|
||||||
|
REPO="tint2-git"
|
||||||
|
fi
|
||||||
|
|
||||||
# Export repository contents to source directory
|
# Export repository contents to source directory
|
||||||
DIR=tint2-$VERSION
|
DIR=tint2-$VERSION
|
||||||
@@ -57,7 +64,7 @@ do
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# Upload package
|
# Upload package
|
||||||
dput ppa:o9000/tint2 tint2_$VERSION-$DISTRO-1_source.changes
|
dput ppa:o9000/$REPO tint2_$VERSION-$DISTRO-1_source.changes
|
||||||
done
|
done
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user