summaryrefslogtreecommitdiffstats
path: root/bin/reprepro_foreign.sh
blob: 199122f0fe5f408df7433db886958cba580b5d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

ARCHITECTURES="${@}"

if [ -z "${ARCHITECTURES}" ]
then
	ARCHITECTURES="arm64"
fi

for ARCHITECTURE in ${ARCHITECTURES}
do
	for DIRECTORY in */*_amd64
	do
		DIRECTORY="$(echo ${DIRECTORY} | sed -e "s|amd64|${ARCHITECTURE}|")"

		if [ ! -e "${DIRECTORY}" ]
		then
			echo "${DIRECTORY}"
		fi
	done | grep -Ev '(current_|firefox|libreoffice|thunderbird)'
done