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 /instsetoo_native/CustomTarget_setup.mk | |
parent | e203f79faac1d26e0d6883be9f0ff88eaaf484ed (diff) |
generate versionrc for instdir
Change-Id: I5f2cdcd8a17ca250413bda066acaeab24118f9d6
Diffstat (limited to 'instsetoo_native/CustomTarget_setup.mk')
-rw-r--r-- | instsetoo_native/CustomTarget_setup.mk | 11 |
1 files changed, 11 insertions, 0 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: |