From dbbfa474c21a64527aa0f3e4c0af911737783d76 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 23 May 2011 12:33:56 +0200 Subject: [PATCH] invoke make version --- macos/build-dmg.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/macos/build-dmg.sh b/macos/build-dmg.sh index 13e7675..07cf801 100755 --- a/macos/build-dmg.sh +++ b/macos/build-dmg.sh @@ -12,6 +12,9 @@ # the script expects the taglevels for both sfa and sface, # in order to retrieve the corresponding code and to label the resulting package properly # alternatively, a build-dir and tags file can be used instead +# Should have the folowing tools installed +# git: to retrieve code +# rpm: to retrieve the version numbers in specfiles # NOTES # we initially leveraged the first similar packaging initially made by Baris Metin @@ -157,7 +160,15 @@ Also make sure to trash the current one before retrying" # retrieve sfa/sfa and sface/sface in the image rm -rf "$img_mnt"/$resource_path/{sfa,sface} git_retrieve $sfa_GITPATH sfa "$img_mnt"/$resource_path/ + # retrieve version number from specfile + sfa_tag=$(rpm -q --specfile "$img_mnt"/$resource_path/sfa/sfa.spec --qf '%{version}-%{taglevel}') + make -C "$img_mnt"/$resource_path/sfa VERSIONTAG="${sfa_tag}" SCMURL="${sfa_GITPATH}" version + git_retrieve $sface_GITPATH sface "$img_mnt"/$resource_path/ + # retrieve version number from specfile + sface_tag=$(rpm -q --specfile "$img_mnt"/$resource_path/sface/sface.spec --qf '%{version}-%{taglevel}') + make -C "$img_mnt"/$resource_path/sface VERSIONTAG="${sface_tag}" SCMURL="${sface_GITPATH}" version + # copy binaries from sface to the bin dir for bin in sface.bin sface-run; do # don't use the --file mode as this loses the executable bit -- 2.43.0