]> granicus.if.org Git - docbook-dsssl/commitdiff
Added some convenience scripts for building release builds.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 21:05:49 +0000 (21:05 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sun, 8 Jul 2007 21:05:49 +0000 (21:05 +0000)
releasetools/build-check [new file with mode: 0644]
releasetools/build-clean [new file with mode: 0755]

diff --git a/releasetools/build-check b/releasetools/build-check
new file mode 100644 (file)
index 0000000..dad1365
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $Id$
+LOGFILENAME=LOG
+if [ -f $LOGFILENAME ]
+then
+  egrep -i "error|fail|\*[^.]" $LOGFILENAME
+else
+  echo
+  echo "No $LOGFILENAME file found."
+  echo "To generate a $LOGFILENAME file, run 'make' like this:"
+  echo
+  echo "  make all 2>&1 | tee $LOGFILENAME"
+  echo
+  exit 1
+fi
diff --git a/releasetools/build-clean b/releasetools/build-clean
new file mode 100755 (executable)
index 0000000..ae2e1cc
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+# $Id$
+if [ -z "$(svn status | egrep '^\?|^X')" ]
+then
+  svn-clean
+else
+  echo
+  echo "Unversioned files found. Before building, either delete the"
+  echo "following files, add them to the repository, or add them to"
+  echo "the svn:ignore properties for their parent directories."
+  echo
+  svn status | egrep '^\?|^X' | cut -c2-
+  exit 1
+fi