diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-28 11:35:35 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-28 16:34:25 +0200 |
commit | 88a943b051bb78be4a3c105474ca20b57f758542 (patch) | |
tree | ca8ad144a5954627765b3ea6224e73b89ee7d270 | |
parent | e203f79faac1d26e0d6883be9f0ff88eaaf484ed (diff) |
generate versionrc for instdir
Change-Id: I5f2cdcd8a17ca250413bda066acaeab24118f9d6
-rw-r--r-- | instsetoo_native/CustomTarget_setup.mk | 11 | ||||
-rw-r--r-- | instsetoo_native/Package_setup.mk | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/instsetoo_native/CustomTarget_setup.mk b/instsetoo_native/CustomTarget_setup.mk index 2374fb1fc4a0..366f1a91691a 100644 --- a/instsetoo_native/CustomTarget_setup.mk +++ b/instsetoo_native/CustomTarget_setup.mk @@ -12,6 +12,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,instsetoo_native/setup)) $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\ ooenv \ ure-link \ + versionrc \ )) $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ooenv : @@ -37,4 +38,14 @@ $(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ure-link : cd $(dir $@) && \ ln -s ure ure-link +$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/versionrc : + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) + ( \ + echo '[Version]' && \ + echo 'AllLanguages=en-US' && \ + echo 'buildid=$(shell git log -1 --format=%H)' && \ + echo 'ProductMajor=$(LIBO_VERSION_MAJOR)$(LIBO_VERSION_MINOR)$(LIBO_VERSION_MICRO)' && \ + echo 'ProductMinor=$(LIBO_VERSION_PATCH)' \ + ) > $@ + # vim: set noet sw=4 ts=4: diff --git a/instsetoo_native/Package_setup.mk b/instsetoo_native/Package_setup.mk index cd32a9e6bcbe..9f8ca3072463 100644 --- a/instsetoo_native/Package_setup.mk +++ b/instsetoo_native/Package_setup.mk @@ -11,7 +11,11 @@ $(eval $(call gb_Package_Package,instsetoo_native_setup,$(call gb_CustomTarget_g $(eval $(call gb_Package_set_outdir,instsetoo_native_setup,$(INSTDIR))) -$(eval $(call gb_Package_add_file,instsetoo_native_setup,program/ooenv,ooenv)) +$(eval $(call gb_Package_add_files,instsetoo_native_setup,program,\ + ooenv \ + versionrc \ +)) + $(eval $(call gb_Package_add_file,instsetoo_native_setup,ure-link,ure-link)) # vim: set noet sw=4 ts=4: |