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

Last change on this file since 6897 was 6587, checked in by kjdon, 20 years ago

removed nzmaps from the distro

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