summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-12 04:48:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-12 08:22:59 +0000
commitbe6e0a6a022ee8d93ab3256c9c7c94b3390039da (patch)
tree5b4e5c7f3f9cf6b4704e2aa666287c98e3bfb522
parentUpdating. (diff)
downloadprogress-linux-tools-be6e0a6a022ee8d93ab3256c9c7c94b3390039da.tar.xz
progress-linux-tools-be6e0a6a022ee8d93ab3256c9c7c94b3390039da.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xbin/debian-chroot12
-rwxr-xr-xbin/pbuild.sh57
-rwxr-xr-xbin/pmove.sh4
3 files changed, 38 insertions, 35 deletions
diff --git a/bin/debian-chroot b/bin/debian-chroot
index 1d67a5c..0061eaa 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 -a -u -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -a -n -u -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 -a -u -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -a -n -u -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p
rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf *
EOF
@@ -223,7 +223,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 source -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -u -b source -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 -a -u -b binary-arch -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -a -n -u -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 -a -u -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -a -n -u -b binary-indep -d ${DERIVATIVE_DISTRIBUTION}-backports -p
rsync -aPv --progress --stats * apt.progress-linux.org::upload && rm -rf *
EOF
@@ -314,7 +314,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 source -d ${DERIVATIVE_DISTRIBUTION}-backports -p
+clear && pbuild.sh -u -b source -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 9835141..b736919 100755
--- a/bin/pbuild.sh
+++ b/bin/pbuild.sh
@@ -43,8 +43,8 @@ esac
Parameters()
{
- LONG_OPTIONS="auto,build:,distribution:,interactive,package:,tag:,upload,"
- OPTIONS="a,b:,d:,i,p:,t:,u,"
+ LONG_OPTIONS="auto,build:,distribution:,interactive,nocheck,package:,tag:,upload,"
+ OPTIONS="a,b:,d:,i,n,p:,t:,u,"
PARAMETERS="$(getopt --longoptions ${LONG_OPTIONS} --name=${PROGRAM} --options ${OPTIONS} --shell sh -- ${@})"
@@ -79,6 +79,11 @@ Parameters()
shift 1
;;
+ -n|--nocheck)
+ NOCHECK="true"
+ shift 1
+ ;;
+
-p|--package)
PACKAGE="$(echo ${2} | sed -e 's|/$||g')"
shift 2
@@ -247,13 +252,10 @@ do
# upload
case "${UPLOAD}" in
true)
- FILES="$(sed -e '1,/^Files:$/ d' ${TARGET}_${SOURCE_VERSION}.dsc | grep -v '^\ \ ' | grep '^\ ' | awk '/^ / { print $3 }')"
+ FILES="$(sed -e '1,/^Files:$/ d' ${TARGET}_${SOURCE_VERSION}.dsc | sed -e '/^[0-1a-zA-Z]/,$d' | awk '{ print $3 }')"
- for FILE in ${FILES} ${TARGET}_${SOURCE_VERSION}.dsc
- do
- rsync -aP "${FILE}" apt.progress-linux.org::upload
- rm -f "${FILE}"
- done
+ rsync -aP "${FILES}" ${TARGET}_${SOURCE_VERSION}.dsc apt.progress-linux.org::upload
+ rm -f "${FILES}" ${TARGET}_${SOURCE_VERSION}.dsc
;;
esac
;;
@@ -310,19 +312,23 @@ do
mv "${TARGET}" "${SOURCE}"
cd "${SOURCE}"
- # disable tests
- for RULE in dh_auto_test dh_auto_test-arch dh_auto_test-indep \
- override_dh_auto_test override_dh_auto_test-arch override_dh_auto_test-indep \
- execute_before_dh_auto_test execute_before_dh_auto_test-arch execute_before_dh_auto_test-indep \
- execute_after_dh_auto_test execute_after_dh_auto_test-arch execute_after_dh_auto_test-indep
- do
- if grep -qs "^${RULE}:" debian/rules
- then
- sed -i -e "s|^${RULE}:|disabled_${RULE}:|" debian/rules
- else
- echo "${RULE}:" >> debian/rules
- fi
- done
+ case "${NOCHECK}" in
+ true)
+ # disable tests
+ for RULE in dh_auto_test dh_auto_test-arch dh_auto_test-indep \
+ override_dh_auto_test override_dh_auto_test-arch override_dh_auto_test-indep \
+ execute_before_dh_auto_test execute_before_dh_auto_test-arch execute_before_dh_auto_test-indep \
+ execute_after_dh_auto_test execute_after_dh_auto_test-arch execute_after_dh_auto_test-indep
+ do
+ if grep -qs "^${RULE}:" debian/rules
+ then
+ sed -i -e "s|^${RULE}:|disabled_${RULE}:|" debian/rules
+ else
+ echo "${RULE}:" >> debian/rules
+ fi
+ done
+ ;;
+ esac
case "${AUTO}" in
true)
@@ -358,13 +364,10 @@ do
# upload
case "${UPLOAD}" in
true)
- FILES="$(sed -e '1,/^Files:$/ d' ${TARGET}_${SOURCE_VERSION}_*.changes | grep -v '^\ \ ' | grep '^\ ' | awk '/^ / { print $5 }')"
+ FILES="$(sed -e '1,/^Files:$/ d' ${TARGET}_${SOURCE_VERSION}_*.changes | sed -e '/^[0-1a-zA-Z]/,$d' | awk '{ print $5 }')"
- for FILE in ${FILES} ${TARGET}_${SOURCE_VERSION}_*.changes
- do
- rsync -aP "${FILE}" apt.progress-linux.org::upload
- rm -f "${FILE}"
- done
+ rsync -aP "${FILES}" ${TARGET}_${SOURCE_VERSION}_*.changes
+ rm -f "${FILES}" ${TARGET}_${SOURCE_VERSION}_*.changes
;;
esac
;;
diff --git a/bin/pmove.sh b/bin/pmove.sh
index 1656aa3..225c94a 100755
--- a/bin/pmove.sh
+++ b/bin/pmove.sh
@@ -28,7 +28,7 @@ do
for CHANGE in ${CHANGES}
do
- FILES="$(sed -e '1,/^Files:$/ d' ${CHANGE} | grep -v '^\ \ ' | grep '^\ ' | awk '/^ / { print $5 }')"
+ FILES="$(sed -e '1,/^Files:$/ d' ${CHANGE} | sed -e '/^[0-1a-zA-Z]/,$d' | awk '{ print $5 }')"
CONTINUE="false"
for FILE in ${FILES}
@@ -110,7 +110,7 @@ then
break
fi
- FILES="$(sed -e '1,/^Files:$/ d' ${DSC} | grep -v '^\ \ ' | grep '^\ ' | awk '/^ / { print $3 }')"
+ FILES="$(sed -e '1,/^Files:$/ d' ${DSC} | sed -e '/^[0-1a-zA-Z]/,$d' | awk '{ print $3 }')"
CONTINUE="false"
for FILE in ${FILES}