From bc8b53bc02edef1425d7e7b8f17166e0f27d67bd Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 18 Feb 2015 16:17:47 +0100 Subject: Add Makefile – allows update only if xml changed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We could check timestamps manually in the update.sh file, but thats what make is designed for. Use make with the hope that the servers will have that as well. --- update.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'update.sh') diff --git a/update.sh b/update.sh index 6ad1214..0151a67 100755 --- a/update.sh +++ b/update.sh @@ -1,13 +1,4 @@ #!/bin/sh cd $(dirname $0) -cat "LIKAT Publications.xml" \ - | xsltproc convert-style-to-html.xsl - \ - | xsltproc endnote-to-dbxml.xsl - \ - | sed -f fix-empty-tags.sed \ - > dbxml.xml - -# sed -f cdata.sed | \ -# xmllint --pretty 1 - \ - -mysql -v -utypo3 -ptypo3 typo3 < update.sql +make -C "$(dirname $0)" dbxml.xml -- cgit