summaryrefslogtreecommitdiffstats
path: root/build-aux/pkg-version
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/pkg-version')
-rwxr-xr-xbuild-aux/pkg-version6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/pkg-version b/build-aux/pkg-version
index 15efb154f6a..83d4a5f9136 100755
--- a/build-aux/pkg-version
+++ b/build-aux/pkg-version
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!/bin/sh
# To override version/release from git,
# create VERSION file containing text with version/release
# eg. v3.4.0-1
PKG_VERSION=`cat VERSION 2> /dev/null || git describe --tags --match "v[0-9]*"`
-function get_version ()
+get_version()
{
# tags and output versions:
# - v3.4.0 => 3.4.0 (upstream clean)
@@ -21,7 +21,7 @@ function get_version ()
echo $PKG_VERSION | awk "$AWK_VERSION" | tr -cd '[:alnum:].'
}
-function get_release ()
+get_release()
{
# tags and output releases:
# - v3.4.0 => 0 (upstream clean)