summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-25 16:42:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-05-25 16:50:32 +0000
commit882a3549203857b4eeac90f579ef2453d9c88f51 (patch)
treea177a4b120bd63b2a916e05e123156fbdf66b2ab
parentUpdating. (diff)
downloadprogress-linux-tools-882a3549203857b4eeac90f579ef2453d9c88f51.tar.xz
progress-linux-tools-882a3549203857b4eeac90f579ef2453d9c88f51.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rwxr-xr-xbin/apupload.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/apupload.sh b/bin/apupload.sh
new file mode 100755
index 0000000..6848c40
--- /dev/null
+++ b/bin/apupload.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+set -e
+
+if [ -z "${@}" ]
+then
+ echo "Usage: ${0} PACKAGE|\"PACKAGES\""
+ exit 1
+fi
+
+if [ -n "${QUIET}" ]
+then
+ QUIET="--quiet"
+fi
+
+PACKAGES="$(echo ${@} | sed -e 's|/||g')"
+
+for PACKAGE in ${PACKAGES}
+do
+ for ARCHITECTURE in arm64 armel armhf
+ do
+ if [ -e "${PACKAGE}/current_${ARCHITECTURE}" ]
+ then
+ cd "${PACKAGE}/current_${ARCHITECTURE}"
+ padd.sh ${QUIET}
+ cd "${OLDPWD}"
+ fi
+ done
+done