Author: jbalunas(a)redhat.com
Date: 2010-05-26 07:42:10 -0400 (Wed, 26 May 2010)
New Revision: 17255
Modified:
root/build/resources/trunk/change_version.sh
Log:
Fixed issue with script
Modified: root/build/resources/trunk/change_version.sh
===================================================================
--- root/build/resources/trunk/change_version.sh 2010-05-26 11:20:43 UTC (rev 17254)
+++ root/build/resources/trunk/change_version.sh 2010-05-26 11:42:10 UTC (rev 17255)
@@ -12,6 +12,9 @@
-d Destination directory, otherwise the PWD is used
-o Version to replace - such as 4-SNAPSHOT
-n Version to replace with - such as 5
+
+ BUGS: This is traverse into tags as well, so some may need to be reverted
+
EOF
}
@@ -30,15 +33,14 @@
echo =================================
echo "Changing <version>$ORIG_VERSION</version> into
<version>$NEW_VERSION</version>"
- find . -name "pom.xml" | xargs perl -pi -e
"s/<version>$ORIG_VERSION<\/version>/<version>$NEW_VERSION<\/version>/"
+ find $DESTINATION -name "pom.xml" | xargs perl -pi -e
"s/<version>$ORIG_VERSION<\/version>/<version>$NEW_VERSION<\/version>/"
echo =================================
-done
-
}
DESTINATION=`pwd`
+WORK=1
ORIG_VERSION=
NEW_VERSION=
Show replies by date