Subversion Repositories eFlore/Applications.coel

Rev

Rev 1221 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 jpm 1
#!/bin/sh
2
APPDIR=`dirname $0`;
1146 jpm 3
APPDIR_ABSOLU=`pwd`;
4
APPLI_NOM="Coel"
5
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
6
APPLI_LIEN="$APPLI_DOMAINE"
907 jpm 7
 
487 jp_milcent 8
# Création d'un lien symbolique si nécessaire.
1146 jpm 9
if [ ! -h $APPDIR/../$APPLI_LIEN ]; then
10
	ln -s $APPDIR_ABSOLU/war ../$APPLI_LIEN;
487 jp_milcent 11
fi;
907 jpm 12
 
13
# Création du fichier apropos.js si nécessaire
1216 jpm 14
if [ ! -f $APPDIR/war/apropos.js ]; then
907 jpm 15
	cp $APPDIR/war/apropos.defaut.js $APPDIR/war/apropos.js;
16
fi;
17
 
1146 jpm 18
# Création du fichier config.js si nécessaire
1216 jpm 19
if [ ! -f $APPDIR/war/config.js ]; then
1146 jpm 20
	cp $APPDIR/war/config.defaut.js $APPDIR/war/config.js;
21
fi;
22
 
907 jpm 23
export COEL_COMPILATION_DATE=`date`;
24
export COEL_REVISION_GLOBAL=`svnversion -n`;
25
 
26
export COEL_JAVA_VERSION=`java -version 2>&1 | sed -e :a -e '/$/N; s/\n/ - /; ta' | sed 's/"//g'`;
27
perl -e 'print "Date:".$ENV{COEL_COMPILATION_DATE},"\n"'
28
perl -e 'print "Révision globale:".$ENV{COEL_REVISION_GLOBAL},"\n"'
29
perl -e 'print "Java version:".$ENV{COEL_JAVA_VERSION},"\n"'
30
 
31
perl -pi -e 's/dateHeureCompilation:"[^"]*"/dateHeureCompilation:"$ENV{COEL_COMPILATION_DATE}"/g' $APPDIR/war/apropos.js
32
perl -pi -e 's/revisionGlobale:"[^"]*"/revisionGlobale:"$ENV{COEL_REVISION_GLOBAL}"/g' $APPDIR/war/apropos.js
33
perl -pi -e 's/versionJavaCompilation:"[^"]*"/versionJavaCompilation:"$ENV{COEL_JAVA_VERSION}"/g' $APPDIR/war/apropos.js
1221 jpm 34
java  -Xmx1024M -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.3/gwt-user.jar:/opt/gwt-2.0.3/gwt-dev.jar:/opt/gxt-2.1.1/gxt.jar" com.google.gwt.dev.Compiler $APPLI_DOMAINE;