diff options
author | Erich Eckner <git@eckner.net> | 2016-06-03 12:29:11 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-06-03 12:29:11 +0200 |
commit | 209724dad80cd30cbaa9985ec474851dcb9fc7bd (patch) | |
tree | 3fbeeca86f73c6e134490236cc85ad0b842ace58 /bumpVersion | |
parent | 69a36acb600e89b0552e71978abcfbb4889103d9 (diff) | |
download | archlinuxewe-209724dad80cd30cbaa9985ec474851dcb9fc7bd.tar.xz |
bumpVersion nimmt nun richtige Verzeichnisse zum Ausführen
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bumpVersion b/bumpVersion index 34bbf900a..772dbcb5d 100755 --- a/bumpVersion +++ b/bumpVersion @@ -1,16 +1,19 @@ #!/bin/bash +me="$(readlink -f "$0")" +myDir="$(dirname "${me}")" + if [ $# -eq 0 ] then >&2 echo 'bumping versions of all packages ...' - $0 $(ls "$(dirname "$(readlink -f "$0")")"/*/PKGBUILD | sed 's|^.*/\([^/]\+\)/PKGBUILD$|\1|') + "${me}" $(ls "${myDir}"/*/PKGBUILD | sed 's|^.*/\([^/]\+\)/PKGBUILD$|\1|') exit $? elif [ $# -gt 1 ] then err=0 for pkg in "$@" do - $0 "${pkg}" + "${me}" "${pkg}" cErr=$? [ ${cErr} -gt ${err} ] && err=${cErr} done @@ -20,7 +23,7 @@ fi paket="${1%/}" >&2 echo "bumping '${paket}' ..." -cd "$(dirname "$(readlink -f "$0")")" +cd "${myDir}" [ -r "${paket}/PKGBUILD" ] || exit 1 eval $(./checkVersions -m "${paket}") if [ "${remVer}" == "${pkgver}" ] @@ -59,7 +62,7 @@ summen="$( \ sed 's|sha512sums=.*$|'"${summen}"'|' -i PKGBUILD ( - if ! "$(dirname "$(readlink -f "$0")")/testeAbhaengigkeiten" "${paket}" + if ! "${myDir}/testeAbhaengigkeiten" "${paket}" then was='' ec[0]='jJyY' |