From e875d4a4f896569fc894830b3bb782798212e7a9 Mon Sep 17 00:00:00 2001 From: Sean Owen Date: Wed, 4 Mar 2015 12:14:39 +0000 Subject: [PATCH] Add note about non-GNU sed; fix new pom.xml update to work as intended on GNU sed --- dev/change-version-to-2.10.sh | 7 +++++-- dev/change-version-to-2.11.sh | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dev/change-version-to-2.10.sh b/dev/change-version-to-2.10.sh index 523048a1248a9..c0a8cb4f825c7 100755 --- a/dev/change-version-to-2.10.sh +++ b/dev/change-version-to-2.10.sh @@ -16,8 +16,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# Note that this will not necessarily work as intended with non-GNU sed (e.g. OS X) + find . -name 'pom.xml' | grep -v target \ - | xargs -I {} sed -i -e 's|\(artifactId.*\)_2.11|\1_2.10|g' {} + | xargs -I {} sed -i -e 's/\(artifactId.*\)_2.10/\1_2.11/g' {} # Also update in parent POM -sed -i -e 's|2.11<|2.10<|1' pom.xml +sed -i -e '0,/2.102.11 in parent POM -sed -i -e 's|2.10<|2.11<|1' pom.xml +sed -i -e '0,/2.112.10