Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1711 → Rev 1712

/trunk/Coel-config
File deleted
/trunk/war/config/apropos.defaut.js
File deleted
\ No newline at end of file
/trunk/war/config/apropos.js.m4
New file
0,0 → 1,26
dnl /* eg: m4 -D _JREST_SERVICES_PATH_=../../jrest/services -D _SUFFIX_=" - beta" < apropos.js.m4 */
ifdef(`_JREST_SERVICES_PATH_', `', `define(`_JREST_SERVICES_PATH_', `../../jrest/services')')dnl
ifdef(`_SUFFIX_', `', `define(`_SUFFIX_')')dnl
define(`_NAME_', `Collections En Ligne'_SUFFIX_)dnl
define(`_DATE_', `esyscmd(date|tr -d "\n")')dnl
define(`_JAVA_VERSION_', esyscmd(java -version 2>&1|sed -e 's/\"//g' -e :a -e '/$/N; s/\n/ - /; ta'|tr -d "\n"))dnl
define(`_SVN_REV_', esyscmd(svnversion -n))dnl
define(`_SVN_VERSION_NAME_', esyscmd(svn info|sed -nr '/^URL.*\/branches\//s;.*/branches/([^/]+)$;\1;p'))dnl
define(`_SVN_VERSION_', patsubst(_SVN_VERSION_NAME_, `^\(.*\)-.*', `\1'))dnl
define(`_SVN_NAME_', patsubst(_SVN_VERSION_NAME_, `^.*-\(.*\)', `\1'))dnl
define(`_SVN_SERVICES_REV_', esyscmd(`svnversion -n '_JREST_SERVICES_PATH_))dnl
ifdef(_SVN_VERSION_NAME_, (), define(`_SVN_NAME_', trunk))dnl
var apropos = {
appliNom:"_NAME_",
appliCode:"COEL",
appliVersionCode:"_SVN_VERSION_",
appliVersionNom:"_SVN_NAME_",
developpeurs:"Jean-Pascal MILCENT, Grégoire DUCHÉ, Aurélien PERONNET, Raphaël Droz",
traducteurs:"",
testeurs:"Louise BOULANGEAT, Andrine FAURE, Véronique SCHÄFER, Danièle DOMEYNE",
licence:"GPL v3 et CECILL v2",
dateHeureCompilation:"_DATE_",
revisionGlobale:"_SVN_REV_",
revisionGlobaleServices:"_SVN_SERVICES_REV_",
versionJavaCompilation:"_JAVA_VERSION_"
};
/trunk/build.xml
29,7 → 29,9
<!-- <arg line="-out build/gwtOutput"/> -->
<classpath refid="gwt"/>
</java>
<exec resolveexecutable="true" executable="Coel-config" />
<exec resolveexecutable="true" executable="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
<arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
</exec>
</target>
 
<target name="quick" depends="link-resources">
40,12 → 42,11
</target>
 
<!-- génération d'un fichier pour test:
cp war/config/apropos{.test,}.js
ant -Dapropos=war/config/apropos.test.js -Dconfigparams="Version de test" config -->
ant -Dsuffix="Version de test" config -->
<target name="config">
<echo message="mise à jour de ${apropos}"/>
<exec resolveexecutable="true" executable="Coel-config">
<arg line="${apropos} ${confparams}"/>
<exec resolveexecutable="true" executable="m4" input="war/config/apropos.js.m4" output="war/config/apropos.js">
<arg line="-D _JREST_SERVICES_PATH_=jrest/services -D _SUFFIX_='${confparams}'" />
</exec>
<echo message="please do # rsync -avuin --no-o --no-g --exclude=WEB-INF --exclude=config war/ ${desthost}:${destdir}/"/>
<echo message="scp -p ${apropos} ${desthost}:${destdir}/config/apropos.js"/>