Kaydet (Commit) 88a943b0 authored tarafından David Tardon's avatar David Tardon

generate versionrc for instdir

Change-Id: I5f2cdcd8a17ca250413bda066acaeab24118f9d6
üst e203f79f
......@@ -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:
......@@ -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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment