Subversion Repositories eFlore/Applications.coel

Rev

Rev 904 | Blame | 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-1.7.0/gwt-user.jar:/opt/gwt-1.7.0/gwt-dev-linux.jar:/opt/gxt-2.0.1/gxt.jar" com.google.gwt.dev.Compiler org.tela_botanica.Coel;