diff options
Diffstat (limited to 'neuesPerlPaket')
-rwxr-xr-x | neuesPerlPaket | 18 |
1 files changed, 15 insertions, 3 deletions
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 |