diff options
author | Erich Eckner <git@eckner.net> | 2016-04-21 08:37:18 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-21 09:06:49 +0200 |
commit | 293e77739fa79e52794f0e7930565331851c7011 (patch) | |
tree | d1b5e3f84e0113f8da684e75df173e4213419670 /bumpVersion | |
parent | 74b8c64d41f91f1f4d18611b7210d0a1c495929d (diff) | |
download | archlinuxewe.git.save-293e77739fa79e52794f0e7930565331851c7011.tar.xz |
bumpVersion löscht nun "/" am Ende des Namens
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bumpVersion b/bumpVersion index d0659866..bea54613 100755 --- a/bumpVersion +++ b/bumpVersion @@ -12,16 +12,18 @@ then exit ${err} fi +paket="${1%/}" + cd "$(dirname "$(readlink -f "$0")")" -[ -r "$1/PKGBUILD" ] || exit 1 -eval $(./checkVersions -m "$1") +[ -r "${paket}/PKGBUILD" ] || exit 1 +eval $(./checkVersions -m "${paket}") if [ "${remVer}" == "${pkgver}" ] then exit 0 fi -cd "$1" -# sed ':begin;$!N;s@^\s*\(sha[[:digit:]]\+sums=\|md5sums=\)\([^)]*\)\n\(.*\)$@sha512sums=\2 \3@;tbegin;P;D' PKGBUILD +cd "${paket}" + sed 's|pkgver=.*$|pkgver='"${remVer}"'|; s|pkgrel=.*$|pkgrel=1|; s@^\s*\(sha[[:digit:]]\+sums\|md5sums\)=@sha512sums=@ @@ -41,4 +43,4 @@ sed 's|sha512sums=.*$|'"${summen}"'|' -i PKGBUILD rm -rf pkg src sudo pacman -Sy makepkg -fcsr || exit 1 -git commit PKGBUILD -m "$1 ${pkgver} -> ${remVer}" +git commit PKGBUILD -m "${paket} ${pkgver} -> ${remVer}" |