summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgbuild/PKGBUILD10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD
index 3deb62cd4..5fa55a253 100644
--- a/pkgbuild/PKGBUILD
+++ b/pkgbuild/PKGBUILD
@@ -20,13 +20,9 @@ pkgver() {
20 cd "../.." 20 cd "../.."
21 21
22 if [[ -d .git ]]; then 22 if [[ -d .git ]]; then
23 for _i in v_maj v_min v_mic; do 23 local efl_version=$(grep -m 1 EFL_VERSION configure.ac | grep -o "[[:digit:]]*" | tr '\n' '.')
24 local v_ver=$v_ver.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*") 24 efl_version=$(awk -F , -v efl_version=${efl_version%.} '/^AC_INIT/ {gsub(/efl_version/, efl_version); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
25 done 25 printf "$efl_version.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
26
27 v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
28
29 printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
30 else 26 else
31 ./configure --version | awk '/^elementary/ {gsub("-", ""); print $NF}' 27 ./configure --version | awk '/^elementary/ {gsub("-", ""); print $NF}'
32 fi 28 fi