source: trunk/debathena/config/tex-config/debian/rules @ 23669

Revision 23669, 727 bytes checked in by broder, 16 years ago (diff)
In tex-config, - Don't run fmtutil-sys on postrm if doesn't exist. - Install the config files with set -e to catch errors.
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3BUILD_ROOT=$(CURDIR)/files
4TEXMFVAR=$(CURDIR)/junk
5TEXMFCONFIG=etc/texmf
6
7DEB_DIVERT_EXTENSION = .debathena
8DEB_DIVERT_FILES_debathena-tex-config += \
9        $(shell cd $(BUILD_ROOT) && find . -type f | sed 's,^\.,,; s,$$,.debathena,')
10
11include /usr/share/cdbs/1/rules/debhelper.mk
12include /usr/share/cdbs/1/rules/config-package.mk
13
14build/debathena-tex-config::
15        TEXMFVAR=$(TEXMFVAR) TEXMFCONFIG=$(BUILD_ROOT)/$(TEXMFCONFIG) texconfig paper letter
16
17install/debathena-tex-config::
18        set -xe; \
19        cd $(BUILD_ROOT); \
20        for f in $$(find $(TEXMFCONFIG) -type f); do \
21            mkdir -p $(DEB_DESTDIR)$$(dirname $$f); \
22            cp -a $$f $(DEB_DESTDIR)$$f.debathena; \
23        done
24
25clean::
26        rm -rf $(CURDIR)/files
27        rm -rf $(TEXMFVAR)
Note: See TracBrowser for help on using the repository browser.