bump product version to 5.0.4.1
[LibreOffice.git] / pyuno / CustomTarget_python_shell.mk
blobbc6d355f7907c8f7114fb81fde00f65b26ee594d
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 $(eval $(call gb_CustomTarget_CustomTarget,pyuno/python_shell))
12 $(eval $(call gb_CustomTarget_register_targets,pyuno/python_shell,\
13 os.sh \
14 python.sh \
17 ifeq ($(OS),MACOSX)
18 pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)
19 else
20 pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION)
21 endif
23 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh : \
24 $(SRCDIR)/pyuno/zipcore/python.sh \
25 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh
26 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,1)
27 cat $^ > $@ && chmod +x $@
29 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh : \
30 $(SRCDIR)/pyuno/zipcore/$(if $(filter MACOSX,$(OS)),mac,nonmac).sh
31 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
32 sed -e "s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" \
33 $< > $@
35 # vim: set noet sw=4 ts=4: