diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-09-23 15:09:10 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-09-23 15:09:10 +0200 |
commit | b5062ccc4cbca8cf0f89e655cedc0884f597a3a1 (patch) | |
tree | 729b45de9123f084ec95cc50f276f03dfc9605f7 | |
parent | 04bfc09c7c1622ce3a534ea6655afb024790591c (diff) | |
download | sbotools2-b5062ccc4cbca8cf0f89e655cedc0884f597a3a1.tar.xz |
tools/update_versions.sh: also update SBO-Lib/README
-rwxr-xr-x | tools/update_versions.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/update_versions.sh b/tools/update_versions.sh index 5cabde7..8c7f49f 100755 --- a/tools/update_versions.sh +++ b/tools/update_versions.sh @@ -39,7 +39,8 @@ update_perl=" SBO-Lib/lib/SBO/Lib/Download.pm SBO-Lib/lib/SBO/Lib/Build.pm " -update_slackbuild=" +update_other=" + SBO-Lib/README slackbuild/sbotools/sbotools.SlackBuild slackbuild/sbotools/sbotools.info " @@ -48,7 +49,7 @@ old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[ tmpfile=$(mktemp /tmp/XXXXXXXXXX) -for i in $update_slackbuild; do +for i in $update_other; do cat $i | sed "s/$old_version/$version/g" > $tmpfile if [[ "$?" == "0" ]]; then mv $tmpfile $i |