/[webpac]/trunk2/openisis/tomcat
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk2/openisis/tomcat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 337 - (show annotations)
Thu Jun 10 19:22:40 2004 UTC (15 years, 7 months ago) by dpavlin
File size: 1119 byte(s)
new trunk for webpac v2

1 #!/bin/sh
2
3 : ${OI:=$HOME/openisis}
4 : ${JAVA_HOME:=/usr/java/jdk1.3}
5 if [ -z "$CATALINA_HOME" ]; then
6 for d in /opt/*tomcat* $HOME/*tomcat*; do
7 [ -d "$d" ] && CATALINA_HOME="$d"
8 # do not break, use the last one found (highest version ?)
9 done
10 fi
11
12 export JAVA_HOME CATALINA_HOME
13 export LD_LIBRARY_PATH=$OI:$LD_LIBRARY_PATH
14
15 cmd () {
16 case "$1" in
17 setup)
18 [ -d $OI/WEB-INF ] \
19 || mkdir $OI/WEB-INF
20 [ -e $OI/WEB-INF/web.xml ] \
21 || cat >$OI/WEB-INF/web.xml <<EOF
22 <!DOCTYPE web-app
23 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
24 "http://java.sun.com/dtd/web-app_2_3.dtd">
25
26 <web-app> <display-name>OpenIsis</display-name> </web-app>
27 EOF
28 [ -d $OI/WEB-INF/lib ] \
29 || mkdir $OI/WEB-INF/lib
30 [ -e $OI/openisis.jar -a -e $OI/openisis.jar ] \
31 || make -C $OI java
32 [ -e $OI/WEB-INF/lib/openisis.jar ] \
33 || ln -s ../../openisis.jar $OI/WEB-INF/lib/.
34 [ -e $CATALINA_HOME/webapps/openisis ] \
35 || ln -s $OI $CATALINA_HOME/webapps/.
36 ;;
37 start) cmd setup; $CATALINA_HOME/bin/startup.sh ;;
38 stop) $CATALINA_HOME/bin/shutdown.sh ;;
39 *) cmd stop; sleep 5; cmd start;;
40 esac
41 }
42
43 cmd "$1"

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26