diff options
Diffstat (limited to 'eclipse/scripts/update_version.sh')
-rwxr-xr-x | eclipse/scripts/update_version.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclipse/scripts/update_version.sh b/eclipse/scripts/update_version.sh index c7198af..c73407a 100755 --- a/eclipse/scripts/update_version.sh +++ b/eclipse/scripts/update_version.sh @@ -2,6 +2,7 @@ OLD="$1" NEW="$2" +REALOLD="$1" # sanity check in input args if [ -z "$OLD" ] || [ -z "$NEW" ]; then @@ -29,3 +30,8 @@ NEW="${NEW//./\.}\.qualifier" # the new pattern. Old files get backuped with the .old extension. grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i -e "s/$OLD/$NEW/g" +# do another grep for older version without the qualifier. We don't +# want to replace those automatically as it could be something else. +# Printing out occurence helps find ones to update manually. +grep -rl "$REALOLD" * + |