3 # Ganymede distribution cleaner
5 # Last Revision Changed: $Rev$
6 # Last Changed By: $Author$
7 # Last Mod Date: $Date$
10 # This script is intended to be used to clean out files
11 # used during the build process, in preparation of tar'ing
12 # up a Ganymede release.
14 # I.e., to build Ganymede, export Ganymede from the SVN
15 # archive to get a clean distrib copy, then do
23 # this will leave you with a copy of the Ganymede tree with
24 # the class and jar files necessary to allow someone to install
25 # and run Ganymede directly from a download without having
26 # to build the source themselves.
28 ############################################################
30 echo "Ganymede distribution cleaner"
35 GROOTDIR
=`echo $prog|sed 's%/[^/][^/]*$%%'`
36 # if the program name is the same as the srcdir name, we have no path
38 test "x$GROOTDIR" = "x$prog" && GROOTDIR
=.
39 if test ! -f $GROOTDIR/src
/build.xml
; then
40 echo "configure: error: can not find Ant file in $GROOTDIR/src/build.xml" 1>&2; exit 1;
44 # Okay, GROOTDIR is where we're at.
48 # Remove the configured install scripts
50 echo "Removing custom install scripts"
56 # Clean up the src tree.. remove the configured makefile,
57 # config.sh and rebuild files
59 echo "Cleaning source tree"
65 echo "Redundant classes removed."
66 echo "Distribution is ready for packaging."