From ca35cd4c94361b4fb064818930879120e08c6221 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Fri, 18 Dec 2015 15:13:42 +0000 Subject: [PATCH] read the package version from the changelog file --- package-linux.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package-linux.sh b/package-linux.sh index 04de38e..4451427 100755 --- a/package-linux.sh +++ b/package-linux.sh @@ -16,9 +16,8 @@ Options: --signed --unsigned" -# version for the debian package -VERSION=0.9.9.2e PROJECT=fractorium +VERSION=$(cat ./debian/changelog | head -n 1 | sed 's/^'$PROJECT' (\([^-]\+\)-.*/\1/') PROJECT_ROOT=$PWD PPA_DIR="$HOME/PPA/$PROJECT-$VERSION" TAR_NAME="$PROJECT-$VERSION.tar.gz"