From 6a920d0cbb2a10e84cb37867ae077c28539415ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 25 May 2021 06:23:51 +0200 Subject: Updating. Signed-off-by: Daniel Baumann --- bin/debian-chroot | 8 ++++---- bin/pbuild.sh | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/bin/debian-chroot b/bin/debian-chroot index 9251244..0aa8ed7 100755 --- a/bin/debian-chroot +++ b/bin/debian-chroot @@ -201,7 +201,7 @@ EOF cat > "${CHROOT}/build/.bash_history" << EOF cd */ && sudo apt-get build-dep -y . && dpkg-buildpackage -B && cd .. && rm -rf */ sudo apt-get install -y -t ${DERIVATIVE_DISTRIBUTION}-backports debhelper -clear && pbuild.sh -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p +clear && pbuild.sh -a -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf * EOF @@ -212,7 +212,7 @@ EOF cat > "${CHROOT}/build/.bash_history" << EOF cd */ && sudo apt-get build-dep -y . && dpkg-buildpackage -A && cd .. && rm -rf */ sudo apt-get install -y -t ${DERIVATIVE_DISTRIBUTION}-backports debhelper -clear && pbuild.sh -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p +clear && pbuild.sh -a -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf * EOF @@ -292,7 +292,7 @@ EOF cat > "${CHROOT}/build/.bash_history" << EOF cd */ && sudo apt-get build-dep -y . && dpkg-buildpackage -B && cd .. && rm -rf */ sudo apt-get install -y -t ${DERIVATIVE_DISTRIBUTION}-backports debhelper -clear && pbuild.sh -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p +clear && pbuild.sh -a -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf * EOF @@ -303,7 +303,7 @@ EOF cat > "${CHROOT}/build/.bash_history" << EOF cd */ && sudo apt-get build-dep -y . && dpkg-buildpackage -A && cd .. && rm -rf */ sudo apt-get install -y -t ${DERIVATIVE_DISTRIBUTION}-backports debhelper -clear && pbuild.sh -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p +clear && pbuild.sh -a -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf * EOF diff --git a/bin/pbuild.sh b/bin/pbuild.sh index 8dfd12e..a2bc7cb 100755 --- a/bin/pbuild.sh +++ b/bin/pbuild.sh @@ -43,8 +43,8 @@ esac Parameters() { - LONG_OPTIONS="build:,distribution:,interactive,package:,tag:," - OPTIONS="b:,d:,i,p:,t:," + LONG_OPTIONS="auto,build:,distribution:,interactive,package:,tag:," + OPTIONS="a,b:,d:,i,p:,t:," PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options ${OPTIONS} --shell sh -- ${@})" @@ -59,6 +59,11 @@ Parameters() while true do case "${1}" in + -a|--auto) + AUTO="true" + shift 1 + ;; + -b|--build) BUILD="${2}" shift 2 @@ -285,6 +290,12 @@ do fi done + case "${AUTO}" in + true) + sudo apt build-dep -y . + ;; + esac + case "${INTERACTIVE}" in true) echo "${PROGRAM}: WAITING... " -- cgit v1.2.3