summaryrefslogtreecommitdiffstats
path: root/bin/apupload.sh
blob: 922b2410b5c2719ca19c76a43ea37d7299b38aa9 (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
	do
		if [ -e "${PACKAGE}/current_${ARCHITECTURE}" ]
		then
			cd "${PACKAGE}/current_${ARCHITECTURE}"
			padd.sh ${QUIET}
			cd "${OLDPWD}"
		fi
	done
done