Subversion Repositories eFlore/Applications.coel

Rev

Details | Last modification | View Log | RSS feed

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