From e709476718d7a0aa4e80663a6a55b2931d221796 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 18 Apr 2016 12:58:13 -0700 Subject: [bug] fix BSD sed syntax --- pkg/pyinst/pyinst-build.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkg/pyinst') 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,4 +1,9 @@ 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 -- cgit v1.2.3