summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-04-18 12:58:13 -0700
committerKali Kaneko <kali@leap.se>2016-04-18 16:21:30 -0400
commite709476718d7a0aa4e80663a6a55b2931d221796 (patch)
tree54e818f0b21950801f23ac340f6753115184a4d9 /pkg
parent21bc3df30c7e280241472c58d74a96a6c84188eb (diff)
[bug] fix BSD sed syntax
Diffstat (limited to 'pkg')
-rw-r--r--pkg/pyinst/pyinst-build.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/pyinst/pyinst-build.mk b/pkg/pyinst/pyinst-build.mk
index 756185bf..92a1cbb3 100644
--- a/pkg/pyinst/pyinst-build.mk
+++ b/pkg/pyinst/pyinst-build.mk
@@ -1,5 +1,10 @@
freeze-ver:
cp pkg/version-template src/leap/bitmask/_version.py
+ sed -i 's/^version_version\(.*\)/version_version = "$(NEXT_VERSION)"/' src/leap/bitmask/_version.py
+ sed -i "s/^full_revisionid\(.*\)/full_revisionid='$(GIT_COMMIT)'/" src/leap/bitmask/_version.py
+
+freeze-ver-osx:
+ cp pkg/version-template src/leap/bitmask/_version.py
sed -i ' ' 's/^version_version\(.*\)/version_version = "$(NEXT_VERSION)"/' src/leap/bitmask/_version.py
sed -i ' ' "s/^full_revisionid\(.*\)/full_revisionid='$(GIT_COMMIT)'/" src/leap/bitmask/_version.py
@@ -9,6 +14,9 @@ hash-binaries:
pyinst: freeze-ver hash-binaries
pyinstaller -y pkg/pyinst/bitmask.spec
+pyinst_osx: freeze-ver-osx hash-binaries
+ pyinstaller -y pkg/pyinst/bitmask.spec
+
reset-ver:
git checkout -- src/leap/bitmask/_version.py
@@ -85,7 +93,7 @@ pyinst-upload:
pyinst-linux: pyinst reset-ver pyinst-hacks-linux pyinst-trim pyinst-cleanup pyinst-distribution-data pyinst-helpers-linux pyinst-tar
-pyinst-osx: pyinst reset-ver pyinst-hacks-osx pyinst-helpers-osx
+pyinst-osx: pyinst_osx reset-ver pyinst-hacks-osx pyinst-helpers-osx
clean_pkg:
rm -rf build dist