Tweaked class comments in containerPanel
[ganymede.git] / distribclean
blob5f78443be6e005d11b1d5a7931f720cc301b1dbb
1 #!/bin/sh
3 # Ganymede distribution cleaner
5 # Last Revision Changed: $Rev$
6 # Last Changed By: $Author$
7 # Last Mod Date: $Date$
8 # SVN URL: $HeadURL$
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
17 # ./configure
18 # cd src
19 # ant total
20 # cd ..
21 # ./distribclean
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"
31 echo
33 prog=$0
35 GROOTDIR=`echo $prog|sed 's%/[^/][^/]*$%%'`
36 # if the program name is the same as the srcdir name, we have no path
37 # set.. must be .
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;
42 export GROOTDIR
44 # Okay, GROOTDIR is where we're at.
46 cd $GROOTDIR
48 # Remove the configured install scripts
50 echo "Removing custom install scripts"
52 rm -f installClient
53 rm -f installServer
54 rm -f installWeb
56 # Clean up the src tree.. remove the configured makefile,
57 # config.sh and rebuild files
59 echo "Cleaning source tree"
61 cd src
63 ant clean
65 echo "Redundant classes removed."
66 echo "Distribution is ready for packaging."