diff options
author | Benjamin Franzke <bfr@qbus.de> | 2015-02-18 16:17:47 +0100 |
---|---|---|
committer | Benjamin Franzke <bfr@qbus.de> | 2015-02-18 16:17:47 +0100 |
commit | bc8b53bc02edef1425d7e7b8f17166e0f27d67bd (patch) | |
tree | c7a5b4eadc4d0f46666ef0f81f25531d4f54b0d9 | |
parent | aceed71c01b9a25ee4fc70074d3edbd7c95042ad (diff) | |
download | endnote-import-bc8b53bc02edef1425d7e7b8f17166e0f27d67bd.tar.gz endnote-import-bc8b53bc02edef1425d7e7b8f17166e0f27d67bd.tar.bz2 endnote-import-bc8b53bc02edef1425d7e7b8f17166e0f27d67bd.zip |
Add Makefile – allows update only if xml changed
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.
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | update.sh | 11 |
2 files changed, 4 insertions, 10 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cd47176 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +dbxml.xml: LIKAT\ Publications.xml *.xsl *.sed Makefile + xsltproc convert-style-to-html.xsl "LIKAT Publications.xml" | xsltproc endnote-to-dbxml.xsl - | sed -f fix-empty-tags.sed > dbxml.xml + mysql -v -utypo3 -ptypo3 typo3 < update.sql @@ -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 |