From 209724dad80cd30cbaa9985ec474851dcb9fc7bd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 3 Jun 2016 12:29:11 +0200 Subject: bumpVersion nimmt nun richtige Verzeichnisse zum Ausführen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bumpVersion | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bumpVersion') 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' -- cgit v1.2.3-70-g09d2