summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-25 04:23:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-25 04:33:07 +0000
commit6a920d0cbb2a10e84cb37867ae077c28539415ed (patch)
tree6f7937a26a277ded4f2e533da27a6a16da31e3c9
parentUpdating. (diff)
downloadprogress-linux-tools-6a920d0cbb2a10e84cb37867ae077c28539415ed.tar.xz
progress-linux-tools-6a920d0cbb2a10e84cb37867ae077c28539415ed.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xbin/debian-chroot8
-rwxr-xr-xbin/pbuild.sh15
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... "