Rev 937 | Rev 1146 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/sh
APPDIR=`dirname $0`;
# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
cd $APPDIR/..;
ln -s coel/war org.tela_botanica.Coel;
fi;
# Création du fichier apropos.js si nécessaire
if [ ! -h $APPDIR/war/apropos.js ]; then
cp $APPDIR/war/apropos.defaut.js $APPDIR/war/apropos.js;
fi;
export COEL_COMPILATION_DATE=`date`;
export COEL_REVISION_GLOBAL=`svnversion -n`;
export COEL_JAVA_VERSION=`java -version 2>&1 | sed -e :a -e '/$/N; s/\n/ - /; ta' | sed 's/"//g'`;
perl -e 'print "Date:".$ENV{COEL_COMPILATION_DATE},"\n"'
perl -e 'print "Révision globale:".$ENV{COEL_REVISION_GLOBAL},"\n"'
perl -e 'print "Java version:".$ENV{COEL_JAVA_VERSION},"\n"'
perl -pi -e 's/dateHeureCompilation:"[^"]*"/dateHeureCompilation:"$ENV{COEL_COMPILATION_DATE}"/g' $APPDIR/war/apropos.js
perl -pi -e 's/revisionGlobale:"[^"]*"/revisionGlobale:"$ENV{COEL_REVISION_GLOBAL}"/g' $APPDIR/war/apropos.js
perl -pi -e 's/versionJavaCompilation:"[^"]*"/versionJavaCompilation:"$ENV{COEL_JAVA_VERSION}"/g' $APPDIR/war/apropos.js
java -Xmx1024M -cp "$APPDIR/src:$APPDIR/bin:/opt/gwt-2.0.0/gwt-user.jar:/opt/gwt-2.0.0/gwt-dev.jar:/opt/gxt-2.1.0/gxt.jar" com.google.gwt.dev.Compiler org.tela_botanica.Coel;