summaryrefslogtreecommitdiffstats
path: root/bin/apupload.sh
blob: 6848c401845c45f19997fd21f7cbd838455a4a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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