summaryrefslogtreecommitdiffstats
path: root/bin/apupload.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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