summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rwxr-xr-xupdate.sh11
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
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