]> git.donarmstrong.com Git - lilypond.git/blob - scripts/auxiliar/update-patch-version.sh
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / auxiliar / update-patch-version.sh
1 #! /bin/bash
2 #
3 #  Update the version number in lilypond snippets without running convert-ly
4 #   on the snippets
5 #  Note: this does not change anything but the version number, and it will only
6 #   change the specified version number
7 #
8 #  This is useful when a patch containing a number of snippets (due to a change
9 #   in syntax) has not completed review before a new development release
10 #   is made.
11 #
12 #  Usage: update-patch-version old-version new-version
13
14 if [ $# -ne 2 ] # need exactly 2 arguments
15 then
16   echo "Usage:  update-patch-version old-version new-version"
17   exit 1
18 fi
19
20 echo "Warning -- if this script is run after a branch is rebased,"
21 echo "  unintended changes will occur. It would be best to revert"
22 echo "  the rebase commit before running."
23
24 git grep --name-only $1 | xargs sed -i -e s/$1/$2/g