Fix git branch and commit revision in version.

This commit is contained in:
Jonas Kvinge
2018-04-01 18:32:31 +02:00
parent 088099f10f
commit f8c80f3fe2
7 changed files with 50 additions and 168 deletions

View File

@@ -1,8 +1,7 @@
#!/bin/bash
name=strawberry
version="@STRAWBERRY_VERSION_SPARKLE@"
deb_dist="@DEB_DIST@"
version="@STRAWBERRY_VERSION_PACKAGE@"
root=$(cd "${0%/*}/.." && echo $PWD/${0##*/})
root=`dirname "$root"`
rootnoslash=`echo $root | sed "s/^\///"`
@@ -15,8 +14,6 @@ tar -cJf $name-$version.tar.xz \
--exclude "$root/dist/*.tar" \
--exclude "$root/dist/*.tar.*" \
--exclude "$root/CMakeLists.txt.user" \
--exclude "$root/build" \
--exclude ".directory" \
"$root"
echo "Also creating ${name}_${version}~${deb_dist}.orig.tar.xz..."
cp "$name-$version.tar.xz" "${name}_${version}~${deb_dist}.orig.tar.xz"