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

Revision 23668, 726 bytes checked in by broder, 16 years ago (diff)
Create debathena-tex-config package to change papersize default to letter
  • 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 -x; \
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.