Subversion Repositories eFlore/Applications.coel

Rev

Rev 1216 | Rev 1383 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#!/bin/sh
APPDIR=`dirname $0`;
APPDIR_ABSOLU=`pwd`;
APPLI_NOM="Coel"
APPLI_DOMAINE="org.tela_botanica.$APPLI_NOM"
APPLI_LIEN="$APPLI_DOMAINE"

# Création d'un lien symbolique si nécessaire.
if [ ! -h $APPDIR/../$APPLI_LIEN ]; then
        ln -s $APPDIR_ABSOLU/war ../$APPLI_LIEN;
fi;

# Création du fichier apropos.js si nécessaire
if [ ! -f $APPDIR/war/apropos.js ]; then
        cp $APPDIR/war/apropos.defaut.js $APPDIR/war/apropos.js;
fi;

# Création du fichier config.js si nécessaire
if [ ! -f $APPDIR/war/config.js ]; then
        cp $APPDIR/war/config.defaut.js $APPDIR/war/config.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.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;