diff options
author | Slack Coder <slackcoder@server.ky> | 2024-11-28 09:59:36 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2025-02-19 09:55:01 -0500 |
commit | 24493e32d8548110c514db9bc09efb5aba276ca5 (patch) | |
tree | 80319bacf6eb845741beb8d331969884495d6f4c /tools/update_versions.sh | |
parent | 82a520dcb6f6cfe538c68fd04a8a7b94f3b177c2 (diff) | |
download | sbotools2-24493e32d8548110c514db9bc09efb5aba276ca5.tar.xz |
Set To Do branch
Diffstat (limited to 'tools/update_versions.sh')
-rwxr-xr-x | tools/update_versions.sh | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/tools/update_versions.sh b/tools/update_versions.sh deleted file mode 100755 index 09a0043..0000000 --- a/tools/update_versions.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh - -usage_exit() { - echo "Usage: $(basename $0) (-g) version" - exit 1 -} - -if [[ "$1" == "" ]]; then - usage_exit -fi - -if [[ "$1" == "-?" ]]; then - usage_exit -fi - -if [[ "$1" == "-h" ]]; then - usage_exit -fi - -if [[ "$1" == "-g" ]]; then - git=true - shift -fi - -if [[ "$1" == "" ]]; then - usage_exit -fi - -version="$1" - -update_perl=" - SBO-Lib/lib/SBO/Lib.pm - SBO-Lib/lib/SBO/Lib/Util.pm - SBO-Lib/lib/SBO/Lib/Tree.pm - SBO-Lib/lib/SBO/Lib/Repo.pm - SBO-Lib/lib/SBO/Lib/Readme.pm - SBO-Lib/lib/SBO/Lib/Pkgs.pm - SBO-Lib/lib/SBO/Lib/Info.pm - SBO-Lib/lib/SBO/Lib/Download.pm - SBO-Lib/lib/SBO/Lib/Build.pm - SBO-Lib/lib/SBO/App.pm - SBO-Lib/lib/SBO/App/Remove.pm - SBO-Lib/lib/SBO/App/Snap.pm -" -update_other=" - SBO-Lib/README - slackbuild/sbotools2/sbotools2.SlackBuild - slackbuild/sbotools2/sbotools2.info -" - -old_version=$(grep '^our $VERSION' SBO-Lib/lib/SBO/Lib.pm | grep -Eo '[0-9]+(\.[0-9RC@gita-f]+){0,1}') - -tmpfile=$(mktemp /tmp/XXXXXXXXXX) - -for i in $update_other; do - cat $i | sed "s/$old_version/$version/g" > $tmpfile - if [[ "$?" == "0" ]]; then - mv $tmpfile $i - fi -done - -for i in $update_perl; do - cat $i | sed "s/'$old_version'/'$version'/g" > $tmpfile - if [[ "$?" == "0" ]]; then - mv $tmpfile $i - fi -done |