summaryrefslogtreecommitdiff
path: root/pkgbuild
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-01-24 12:08:33 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-01-24 12:08:55 +0900
commit467582ff6d199d04f96093628abe0563b7aefbdd (patch)
tree1d1421ec97bdc3d2bce0b2f815266b78a62664ac /pkgbuild
parentdd3797041d567da67f8b3265b342fc6c5536deb3 (diff)
PKGBUILD - follow changes in defining version with efl.m4
Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D492 Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
Diffstat (limited to 'pkgbuild')
-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