summaryrefslogtreecommitdiff
path: root/port
blob: 78ad7b0a02d52c59a9ea881f4b7f8a4cb53aa1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -eu
export REPO="$PWD"
export PREFIX="$REPO/out/initrd/usr/"
export PATH="$REPO/ports/bin/:$REPO/toolchain/bin/:$PATH"

if [ $1 = deepclean ]; then
	rm -rf ports/out/
	exit
fi

mkdir -p ports/out/$1/ $PREFIX
cd ports/out/$1/
sh $REPO/ports/$1 $2