sw uno: do not throw exceptions on getString()
[LibreOffice.git] / setup_native / CustomTarget_scripts.mk
blobc7f8c5b0aec125192a990ea5295fc014b83ab368
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 scripts_WORKDIR :=$(call gb_CustomTarget_get_workdir,setup_native/scripts)
12 $(eval $(call gb_CustomTarget_CustomTarget,setup_native/scripts))
14 ifeq ($(OS),LINUX)
15 ifneq ($(filter rpm,$(PKGFORMAT)),)
16 $(eval $(call gb_CustomTarget_register_targets,setup_native/scripts,\
17 install \
18 uninstall \
19 noarch/fake-db-1.0-0.noarch.rpm \
22 $(scripts_WORKDIR)/noarch/fake-db-1.0-0.noarch.rpm: $(SRCDIR)/setup_native/scripts/fake-db.spec
23 mkdir -p $(scripts_WORKDIR)/fake-db-root
24 $(RPM) --define "_builddir $(scripts_WORKDIR)/fake-db-root" \
25 --define "_rpmdir $(scripts_WORKDIR)" -bb $<
26 chmod g+w $(scripts_WORKDIR)/fake-db-root
28 $(scripts_WORKDIR)/install: $(SRCDIR)/setup_native/scripts/install_linux.sh $(scripts_WORKDIR)/noarch/fake-db-1.0-0.noarch.rpm
29 $(PERL) -w $(SRCDIR)/setup_native/scripts/install_create.pl $^ $@
30 chmod 775 $@
32 $(scripts_WORKDIR)/uninstall: $(SRCDIR)/setup_native/scripts/uninstall_linux.sh
33 cat $< | tr -d "\015" > $@
34 chmod 775 $@
35 endif
36 endif
38 # vim: set noet sw=4 ts=4: