bump product version to 4.1.6.2
[LibreOffice.git] / sysui / CustomTarget_infoplist.mk
blob64419ba5526a1e8bad2ca02511a60f5415aa3eaf
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 info_WORKDIR := $(call gb_CustomTarget_get_workdir,sysui/infoplist)
11 info_SRCDIR := $(SRCDIR)/sysui/desktop/macosx
14 $(eval $(call gb_CustomTarget_CustomTarget,sysui/infoplist))
16 $(eval $(call gb_CustomTarget_register_targets,sysui/infoplist,\
17 PkgInfo \
18 Info.plist \
19 $(foreach lang,en-US $(gb_WITH_LANG),\
20 InfoPlist_$(lang).zip InfoPlist_$(lang)/InfoPlist.strings) \
23 $(info_WORKDIR)/PkgInfo:
24 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
25 echo "APPLLIBO" > $@
27 $(info_WORKDIR)/Info.plist: $(info_SRCDIR)/Info.plist
28 sed -e "s|\%EXECUTABLE|soffice|g" $< > $@
30 $(info_WORKDIR)/InfoPlist_%.zip: $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings
31 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ZIP,1)
32 zip -j $@ $<
34 $(info_WORKDIR)/InfoPlist_%/InfoPlist.strings: $(info_WORKDIR)/Info.plist $(call gb_CustomTarget_get_workdir,sysui/share)/documents.ulf
35 mkdir -p $(dir $@)
36 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,1)
37 $(PERL) -w $(info_SRCDIR)/gen_strings.pl -l $* -p $^ | \
38 iconv -f UTF-8 -t UTF-16 >$@
40 # vim: set noet sw=4 ts=4: