source: trunk/gsdl3/gs3-for-distribution.sh@ 7269

Last change on this file since 7269 was 6915, checked in by kjdon, 20 years ago

oops, last commit I left in an exit; that wasn't supposed to be there

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#!/bin/sh
2
3if [ ! -f gs3-setup.sh ]; then
4 echo "You must run this script from within the Greenstone 3 home directory"
5 exit 1
6fi
7
8#check that GSDL3HOME is set
9if test -z "$GSDL3HOME" ; then
10 source gs3-setup.sh
11fi
12
13echo "removing unnecessary files for distribution:"
14
15echo "tomcat, soap, mysql tar files"
16
17rm $GSDL3HOME/comms/jakarta/tomcat-4.1.24.tar.gz
18rm $GSDL3HOME/comms/soap/soap-bin-2.2.tar.gz
19rm $GSDL3HOME/packages/mysql/mysql-4.0.16.tar.gz
20rm -rf $GSDL3HOME/packages/mysql/mysql-4.0.16
21
22echo "collection indexfiles.tgz"
23
24for f in $GSDL3HOME/web/sites/localsite/collect/*/index; do
25 rm $f/indexfiles.tgz
26done
27
28echo "unwanted collections"
29
30rm -r $GSDL3HOME/web/sites/localsite/collect/xslt
31rm -r $GSDL3HOME/web/sites/localsite/collect/gs2model
32rm -r $GSDL3HOME/web/sites/localsite/collect/nzmaps
33
34echo "make clean"
35
36cd $GSDL3HOME/src/java/org/greenstone/gdbm
37make clean
38cd $GSDL3HOME/src/java/org/greenstone/testing
39make clean
40cd $GSDL3HOME/src/java/org/greenstone/gsdl3
41make clean
42cd $GSDL3HOME/src/java/org/greenstone/applet/phind
43make clean
44cd $GSDL3HOME/packages/mg
45make clean
46cd $GSDL3HOME/packages/mgpp
47make clean
48
49cd $GSDL3HOME
50
51echo "Makefiles"
52cd $GSDL3HOME/packages
53for f in `find -name Makefile`; do
54 rm $f
55done
56cd $GSDL3HOME
57
58echo "gate jar file"
59rm $GSDL3HOME/lib/java/gate.jar.tmp
60
61echo "CVS directories"
62cd $GSDL3HOME
63for f in `find -name CVS`; do
64 rm -r $f
65done
Note: See TracBrowser for help on using the repository browser.