[jbosscache-commits] JBoss Cache SVN: r7358 - searchable/trunk.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Sun Jan 4 12:54:05 EST 2009


Author: manik.surtani at jboss.com
Date: 2009-01-04 12:54:05 -0500 (Sun, 04 Jan 2009)
New Revision: 7358

Modified:
   searchable/trunk/release.sh
Log:
Fixed script

Modified: searchable/trunk/release.sh
===================================================================
--- searchable/trunk/release.sh	2009-01-04 17:52:28 UTC (rev 7357)
+++ searchable/trunk/release.sh	2009-01-04 17:54:05 UTC (rev 7358)
@@ -11,6 +11,8 @@
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
+versionJavaFile="src/main/java/org/jboss/cache/search/Version.java"
+
 #  Functions that will be called
 
 help()
@@ -76,9 +78,9 @@
 	# Change pom.xml and Version.java
 	sed -e "s/<jbosscache-searchable-version>[1-9]\.[0-9]\.[0-9]-SNAPSHOT/<jbosscache-searchable-version>$ver/g" pom.xml > newpom.xml
 	mv newpom.xml pom.xml
-	sed -e "s/\"[1-9]\.[0-9]\.[0-9]-SNAPSHOT\"/\"$ver\"/g" src/main/java/org/jboss/cache/Version.java > tmp.java
-	mv tmp.java src/main/java/org/jboss/cache/Version.java
- 	svn ci -m "JBoss Cache Release Script: Updating $ver" pom.xml src/main/java/org/jboss/cache/Version.java
+	sed -e "s/\"[1-9]\.[0-9]\.[0-9]-SNAPSHOT\"/\"$ver\"/g" $versionJavaFile > tmp.java
+	mv tmp.java $versionJavaFile
+ 	svn ci -m "JBoss Cache Release Script: Updating $ver" pom.xml $versionJavaFile
 }
 
 docs()




More information about the jbosscache-commits mailing list