From 600badeae3af13acc8a4ff68caf0b90f3e7fa2a6 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 14 Apr 2015 04:23:41 +0300 Subject: [PATCH] update install script --- install.sh | 4 ++-- slackbuild/slpkg.SlackBuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 4a68b718..94f7d54f 100755 --- a/install.sh +++ b/install.sh @@ -21,14 +21,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -grab_version() { +__version() { # Grab version from __metadata_.py file cat slpkg/__metadata__.py | grep "__version_info__ = (" \ | tr -d [[:space:]] | cut -c19-23 | tr , . } PRGNAM=slpkg -VERSION=${VERSION:-$(grab_version)} +VERSION=${VERSION:-$(__version)} TAG=${TAG:-_dsw} # Installation script. diff --git a/slackbuild/slpkg.SlackBuild b/slackbuild/slpkg.SlackBuild index e2bab4a8..2cacda99 100755 --- a/slackbuild/slpkg.SlackBuild +++ b/slackbuild/slpkg.SlackBuild @@ -22,14 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -grab_version() { +__version() { # Grab version from __metadata_.py file cat ../slpkg/__metadata__.py | grep "__version_info__ = (" \ | tr -d [[:space:]] | cut -c19-23 | tr , . } PRGNAM=slpkg -VERSION=${VERSION:-$(grab_version)} +VERSION=${VERSION:-$(__version)} BUILD=${BUILD:-1} TAG=${TAG:-_dsw}