diff options
author | Erich Eckner <git@eckner.net> | 2016-05-24 10:21:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-24 10:21:28 +0200 |
commit | d119a1d1b040250ed351d1550117fb75a3486142 (patch) | |
tree | f36a2eff65f09c12c4a6f58c914ef3d3b42f1fe5 /bumpVersion | |
parent | 8dd7a8f9ea2441a961577e99d653e0b542a56b35 (diff) | |
download | archlinuxewe.git.save-d119a1d1b040250ed351d1550117fb75a3486142.tar.xz |
bumpVersion bumpt jetzt alles bei 0 übergebenen Paketen
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bumpVersion b/bumpVersion index 5b50d9ac..82d9cb61 100755 --- a/bumpVersion +++ b/bumpVersion @@ -1,6 +1,11 @@ #!/bin/bash -if [ $# -ne 1 ] +if [ $# -eq 0 ] +then + >&2 echo 'bumping versions of all packages ...' + $0 $(ls "$(dirname "$(readlink -f "$0")")"/*/PKGBUILD | sed 's|^.*/\([^/]\+\)/PKGBUILD$|\1|') + exit $? +elif [ $# -gt 1 ] then err=0 for pkg in "$@" @@ -13,12 +18,14 @@ then fi paket="${1%/}" +>&2 echo "bumping '${paket}' ..." cd "$(dirname "$(readlink -f "$0")")" [ -r "${paket}/PKGBUILD" ] || exit 1 eval $(./checkVersions -m "${paket}") if [ "${remVer}" == "${pkgver}" ] then + >&2 echo '... nothing to do here.' exit 0 fi @@ -54,3 +61,5 @@ rm -rf pkg src sudo pacman -Sy makepkg -fcsr --noconfirm --asdeps || exit 1 git commit PKGBUILD -m "${paket} ${pkgver} -> ${remVer}" + +>&2 echo '... done' |