summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-02 17:27:18 -0700
committerMark Wells <mark@freeside.biz>2015-07-02 19:52:19 -0700
commit1cfaa817b9cfb0a3d628c571e4505b5e0c4e9954 (patch)
tree67cfb669f4685638c8cb13f98f27123135795148
parentb3a3e87627ab27c0b2c96c0242a6405864eee365 (diff)
add tex style to debian/rules
-rw-r--r--debian/freeside-lib.postinst4
-rwxr-xr-xdebian/rules7
2 files changed, 8 insertions, 3 deletions
diff --git a/debian/freeside-lib.postinst b/debian/freeside-lib.postinst
new file mode 100644
index 000000000..870ad315f
--- /dev/null
+++ b/debian/freeside-lib.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+texhash /usr/local/share/texmf
+
diff --git a/debian/rules b/debian/rules
index f39007240..a7f2b72d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -78,6 +78,8 @@ export FREESIDE_URL = http://$(HOSTNAME)/freeside/
# (but leaving it for now, otherwise can't get RT to put files where we need em)
export RT_PATH = $(TMP)/opt/rt3
+export TEXMF_PATH = $(TMP)-lib/usr/local/share/texmf/tex/latex
+
# This has to be exported to make some magic below work.
export DH_OPTIONS
@@ -167,9 +169,8 @@ install-stamp: build-stamp
$(MAKE) -e DESTDIR=$(TMP)-webui install-docs
# Install tex
- install -D -o freeside -m 444 etc/longtable.sty \
- $(TMP)-lib/usr/local/share/texmf/tex/latex/longtable.sty
- texhash $(TMP)-lib/usr/local/share/texmf
+ install -d ${TEXMF_PATH}
+ install -o freeside -m 444 etc/*.sty ${TEXMF_PATH}
# Create Apache configurations
install -d $(APACHE_CONF)