Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
APPDIR=`dirname $0`;
|
2 |
APPDIR=`dirname $0`;
|
- |
|
3 |
|
3 |
# Création d'un lien symbolique si nécessaire.
|
4 |
# Création d'un lien symbolique si nécessaire.
|
4 |
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
|
5 |
if [ ! -h $APPDIR/../org.tela_botanica.Coel ]; then
|
5 |
cd $APPDIR/..;
|
6 |
cd $APPDIR/..;
|
6 |
ln -s coel/war org.tela_botanica.Coel;
|
7 |
ln -s coel/war org.tela_botanica.Coel;
|
7 |
fi;
|
8 |
fi;
|
- |
|
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`;
|
8 |
export SVN_NUMERO_REVISION_GLOBAL=`svnversion -n`;
|
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"'
|
9 |
perl -e 'print "Révision:".$ENV{SVN_NUMERO_REVISION_GLOBAL},"\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
|
10 |
perl -pi -e 's/"\$RevisionGlobale:? ?[^\$]* ?\$"/"\$RevisionGlobale: $ENV{SVN_NUMERO_REVISION_GLOBAL} \$"/g' $APPDIR/src/org/tela_botanica/client/Mediateur.java
|
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
|
11 |
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;
|
27 |
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;
|
12 |
|
28 |
|