Update packaging script for Ubuntu
This commit is contained in:
parent
f18345ede6
commit
e103918050
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
|
||||||
|
|
||||||
rm -rf tint2* 2>/dev/null || true
|
rm -rf tint2* 2>/dev/null || true
|
||||||
|
|
||||||
|
@ -20,9 +19,10 @@ then
|
||||||
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//')
|
VERSION=$(git describe --exact-match 2>/dev/null)
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
|
VERSION=$(echo "$VERSION" | sed 's/^v//')
|
||||||
REPO="tint2"
|
REPO="tint2"
|
||||||
else
|
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"
|
||||||
|
|
Loading…
Reference in a new issue