summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-07 15:17:45 +0200
committerErich Eckner <git@eckner.net>2017-09-07 15:17:45 +0200
commit1fc8a70a41a152844408685f18146c54d342769a (patch)
treed2d70b7f1638374063af4b4c69a370e9a8cf5af1
parent47a269aae32765accf9eeccdcdaf234ab5cf1710 (diff)
downloadarchlinuxewe-1fc8a70a41a152844408685f18146c54d342769a.tar.xz
neuesPerlPaket: nun noch interaktiver
-rwxr-xr-xneuesPerlPaket18
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