|
From: <rv...@us...> - 2009-09-26 04:05:08
|
Revision: 186
http://treebase.svn.sourceforge.net/treebase/?rev=186&view=rev
Author: rvos
Date: 2009-09-26 04:04:53 +0000 (Sat, 26 Sep 2009)
Log Message:
-----------
Made publish scrip more portable w.r.t. source location, using TREEBASE_HOME env var
Modified Paths:
--------------
trunk/treebase-core/src/main/perl/misc/publish
Modified: trunk/treebase-core/src/main/perl/misc/publish
===================================================================
--- trunk/treebase-core/src/main/perl/misc/publish 2009-09-12 17:38:56 UTC (rev 185)
+++ trunk/treebase-core/src/main/perl/misc/publish 2009-09-26 04:04:53 UTC (rev 186)
@@ -26,11 +26,11 @@
fi
TOMCAT_URL=http://8ball.sdsc.edu:6666/treebase-web/
-VERSIONFILE=treebase-core/src/main/java/org/cipres/treebase/Version.java
+VERSIONFILE=${TREEBASE_HOME}/treebase-core/src/main/java/org/cipres/treebase/Version.java
# Rebuild the application WAR file, if requested
if $update_sources; then
- cd $HOME/treebase/trunk || die "cd treebase/trunk";
+ cd $TREEBASE_HOME || die "cd $TREEBASE_HOME";
rm -f $VERSIONFILE
svn update || die
# mvn clean || die
@@ -43,7 +43,7 @@
perl -i -lpe 'BEGIN { while ($ARGV[0] =~ /=/) {my($k,$v) = split /=/, shift(), 2; $prop{$k} = $v } } s/##(\w+)##/$prop{$1}/g' "VCSID=$svnrevision" "VCSDATESTRING=$svndatestring" $VERSIONFILE
- touch treebase-web/src/main/webapp/common/footer.jsp
+ touch ${TREEBASE_HOME}/treebase-web/src/main/webapp/common/footer.jsp
mvn install -Dmaven.test.skip=true
fi
@@ -58,7 +58,7 @@
# and move the new warfile into place
if $update_sources; then
cd $WEBAPPS && rm -rf $TARGET_DIR && rm -f treebase-web.war
- if cp -v warLocation/treebase-web.war . ; then
+ if cp -v ${TREEBASE_HOME}/treebase-web/target/treebase-web.war . ; then
:
else
die "Installation failed: no WAR file"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|