add tex style to debian/rules
authorMark Wells <mark@freeside.biz>
Fri, 3 Jul 2015 00:27:18 +0000 (17:27 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 3 Jul 2015 02:50:40 +0000 (19:50 -0700)
debian/freeside-lib.postinst [new file with mode: 0644]
debian/rules

diff --git a/debian/freeside-lib.postinst b/debian/freeside-lib.postinst
new file mode 100644 (file)
index 0000000..870ad31
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+texhash /usr/local/share/texmf
+
index f390072..a7f2b72 100755 (executable)
@@ -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)