]> granicus.if.org Git - docbook-dsssl/commitdiff
Added convenience script for setting up catalogs.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 21:32:40 +0000 (21:32 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 21:32:40 +0000 (21:32 +0000)
releasetools/catalog-install [new file with mode: 0755]

diff --git a/releasetools/catalog-install b/releasetools/catalog-install
new file mode 100755 (executable)
index 0000000..7dcda08
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+# $Id$
+if [ "$1" = "uninstall" ]
+then
+  if [ -f ./uninstall.sh ]
+  then
+    ./uninstall.sh --batch
+  else
+    echo
+    echo "Nothing to uninstall."
+    echo
+    echo "To set up catalogs, first run $0"
+    echo "without the 'uninstall' argument."
+    exit 1
+  fi
+else
+  echo
+  make install.sh \
+  && echo \
+  && ./install.sh --batch \
+  && . $(pwd)/.profile.incl \
+  && echo "OK, did . $(pwd)/.profile.incl" \
+  && echo "to source environment." \
+  && ./test.sh
+fi