From 1fc8a70a41a152844408685f18146c54d342769a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Sep 2017 15:17:45 +0200 Subject: neuesPerlPaket: nun noch interaktiver --- neuesPerlPaket | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'neuesPerlPaket') diff --git a/neuesPerlPaket b/neuesPerlPaket index 6187dc52b..1a1be38d2 100755 --- a/neuesPerlPaket +++ b/neuesPerlPaket @@ -176,23 +176,30 @@ needs_build=true while ${needs_build}; do while ${needs_build}; do + makepkg -fcrs --noconfirm --asdeps || break needs_build=false - makepkg -fcrs --noconfirm --asdeps || exit 1 namcap ${pkgname}-*.pkg.tar.xz | \ tee namcap.log if grep -q ' W: No ELF files and not an "any" package$' namcap.log; then rm ${pkgname}-*.pkg.tar.xz - needs_build=true + needs_build=true sed -i "s/^arch=.*\$/arch=('any')/" PKGBUILD fi done echo '' - echo 'sieht soweit erst mal gut aus, oder?' + if ${needs_build}; then + echo 'irgendwas lief schief - kriegst du das wieder hin?' + else + echo 'sieht soweit erst mal gut aus, oder?' + fi read antwort case "${antwort}" in '') + if ${needs_build}; then + nano PKGBUILD + fi ;; 'e') nano PKGBUILD @@ -220,3 +227,8 @@ fi git add PKGBUILD git commit -m "${pkgname} neu" + +if [ "$(git -C "$(dirname "${me}")" symbolic-ref HEAD 2> /dev/null)" = 'refs/heads/master' ]; then + "$(dirname "${me}")/archPackagesUpdate" --only "${pkgname}" + sudo pacman -Sy +fi -- cgit v1.2.3-70-g09d2