[cig-commits] r12901 - cs/cigma/trunk/build

luis at geodynamics.org luis at geodynamics.org
Wed Sep 17 01:06:31 PDT 2008


Author: luis
Date: 2008-09-17 01:06:30 -0700 (Wed, 17 Sep 2008)
New Revision: 12901

Added:
   cs/cigma/trunk/build/README
   cs/cigma/trunk/build/cleanup.sh
   cs/cigma/trunk/build/rebuild.sh.in
Log:
Build utilities

These are scripts for rebuilding the tarball, and for
clearing out the autoconf cruft that accumulates in all
the directories.

Added: cs/cigma/trunk/build/README
===================================================================
--- cs/cigma/trunk/build/README	                        (rev 0)
+++ cs/cigma/trunk/build/README	2008-09-17 08:06:30 UTC (rev 12901)
@@ -0,0 +1,6 @@
+Build Scripts
+=============
+  This directory contains utility scripts for testing a source
+installation on a clean target. Mostly this is just to make sure
+that no files are missing in the released tarball file.
+

Added: cs/cigma/trunk/build/cleanup.sh
===================================================================
--- cs/cigma/trunk/build/cleanup.sh	                        (rev 0)
+++ cs/cigma/trunk/build/cleanup.sh	2008-09-17 08:06:30 UTC (rev 12901)
@@ -0,0 +1,19 @@
+#!/bin/bash -v
+#
+# Call this script from the top level directory:
+#
+#   ./build/cleanup.sh
+#
+
+MAKEFILES="Makefile src/Makefile tests/Makefile"
+
+for m in $MAKEFILES ; do
+    rm -rf $m "$m.in"
+done
+
+rm -rf aux-config autom4te.cache
+rm -rf aclocal.m4 libtool configure
+rm -rf config.status config.log
+rm -rf stamp-h1 config.h 'config.h.in' 'config.h.in~'
+
+exit 0


Property changes on: cs/cigma/trunk/build/cleanup.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: cs/cigma/trunk/build/rebuild.sh.in
===================================================================
--- cs/cigma/trunk/build/rebuild.sh.in	                        (rev 0)
+++ cs/cigma/trunk/build/rebuild.sh.in	2008-09-17 08:06:30 UTC (rev 12901)
@@ -0,0 +1,14 @@
+#!/bin/bash -v
+S=/tmp/src
+T=/tmp/opt
+P=@PACKAGE_TARNAME at -@PACKAGE_VERSION@
+make dist && \
+rm -rf $S/$P && \
+rm -rf $T/$P && \
+mkdir -p $S/$P && \
+tar xvfz $P.tar.gz -C $S && \
+cd $S/$P && \
+./configure \
+    --prefix=$T/$P \
+    @DISTCHECK_CONFIGURE_FLAGS@ && \
+make && make install



More information about the cig-commits mailing list