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