From ab59bfd9c322c3ee30b3c058b9527105303b3241 Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Thu, 12 Aug 2010 21:35:23 -0600 Subject: [PATCH] Add scripts/auxiliar/update-patch-version Add script that will update all of the version strings in snippets if the version changes between initial posting and final approval --- scripts/auxiliar/update-patch-version | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/auxiliar/update-patch-version diff --git a/scripts/auxiliar/update-patch-version b/scripts/auxiliar/update-patch-version new file mode 100755 index 0000000000..ac30788f81 --- /dev/null +++ b/scripts/auxiliar/update-patch-version @@ -0,0 +1,21 @@ +#! /bin/bash +# +# Update the version number in lilypond snippets without running convert-ly +# on the snippets +# Note: this does not change anything but the version number, and it will only +# change the specified version number +# +# This is useful when a patch containing a number of snippets (due to a change +# in syntax) has not completed review before a new development release +# is made. +# +# Usage: update-patch-version old-version new-version + +if [ $# -ne 2 ] # need exactly 2 arguments +then + echo "Usage: update-patch-version old-version new-version" + exit 1 +fi + +git grep --name-only $1 | xargs sed -i -e s/$1/$2/g + -- 2.39.5