From 9ca3af3f2cef53d25e2012e07b75ed5028cf7a11 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 18 Feb 2015 22:36:08 +0200 Subject: [PATCH] update pass version to install script --- install.sh | 4 ++-- slackbuild/slpkg.SlackBuild | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index dd961c13..bee60ef7 100755 --- a/install.sh +++ b/install.sh @@ -21,8 +21,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slpkg -VERSION=${VERSION:-$(python -c "from slpkg.__metadata__ import MetaData; \ - print MetaData.__version__")} +VERSION=${VERSION:-$(cat slpkg/__metadata__.py | grep "__version_info__ = (" \ + | cut -c25-31 | tr -d [[:space:]] | tr , .)} TAG=${TAG:-_dsw} # Installation script. diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index d75f9965..8ac315e7 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slpkg -VERSION=${VERSION:-2.2.3} +VERSION=${VERSION:-$(cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \ + | cut -c25-31 | tr -d [[:space:]] | tr , .)} BUILD=${BUILD:-1} TAG=${TAG:-_dsw}