check out cvs code, autogen, make, make distcheck if you have spare machines at work...
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 14 Dec 2001 09:44:11 +0000 (09:44 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 14 Dec 2001 09:44:11 +0000 (09:44 +0000)
Original commit message from CVS:
check out cvs code, autogen, make, make distcheck
if you have spare machines at work sitting idly during the night, run this before you go home or at night ;)

scripts/gstcvstest.sh [new file with mode: 0755]

diff --git a/scripts/gstcvstest.sh b/scripts/gstcvstest.sh
new file mode 100755 (executable)
index 0000000..57cb9e9
--- /dev/null
@@ -0,0 +1,89 @@
+#!/bin/bash
+# gstreamer auto-builder
+# 0.1.0
+# thomas@apestaart.org
+# check out fresh gstreamer cvs code anonymously, configure, build
+
+# FIXME :
+# * check out source twice, compare, to make sure we don't get code
+#   in between commits
+# * add rpm building if allowed
+# * maybe change dir where stuff gets built ?
+
+
+BR=/tmp                # build root
+export DISPLAY=:0.0 # gtk-scandoc needs an X server
+
+# delete logs
+rm -rf $BR/*.log
+
+echo -n "+ Starting on "
+date
+echo -n "+ "
+uname -a
+# delete gstreamer dir if it exists
+if test -e $BR/gstreamer
+then
+  echo "+ Deleting $BR/gstreamer"
+  chmod u+rwx -R /tmp/gstreamer
+  rm -rf $BR/gstreamer
+fi
+
+cd $BR
+
+# check out
+echo "+ Checking out source code"
+cvs -z3 -d:pserver:anonymous@cvs.gstreamer.sourceforge.net:/cvsroot/gstreamer co gstreamer > cvs.log 2>&1
+
+# do your thing
+cd gstreamer
+
+# autogen
+echo "+ Running ./autogen.sh"
+./autogen.sh  > ../autogen.log 2>&1
+if test $? -ne 0
+then
+  echo "- Problem while running autogen.sh"
+  echo "- Dumping end of log ..."
+  echo
+  tail -n 20 ../autogen.log
+  exit
+fi
+
+echo "+ Running ./configure --enable-docs-build=no"
+./configure --enable-docs-build=no > ../configure.log 2>&1
+if test $? -ne 0
+then
+  echo "- Problem while running configure"
+  echo "- Dumping end of log ..."
+  echo
+  tail -n 20 ../configure.log
+  exit
+fi
+
+# make
+echo "+ Running make"
+make > ../make.log 2>&1
+if test $? -ne 0
+then
+  echo "- Problem while running make"
+  echo "- Dumping end of log ..."
+  echo
+  grep -v "pasting would not give a valid" ../make.log > ../make.scrubbed.log
+  tail -n 20 ../make.scrubbed.log
+  exit
+fi
+
+echo "+ Running BUILD_DOCS= make distcheck"
+BUILD_DOCS= make distcheck > ../makedistcheck.log 2>&1
+if test $? -ne 0
+then
+  echo "- Problem while running make distcheck"
+  echo "- Dumping end of log ..."
+  echo
+  tail -n 20 ../makedistcheck.log
+  exit
+fi
+
+echo -n "+ Ending successful build cycle on "
+date