summaryrefslogtreecommitdiff
path: root/port
diff options
context:
space:
mode:
Diffstat (limited to 'port')
-rwxr-xr-xport14
1 files changed, 14 insertions, 0 deletions
diff --git a/port b/port
new file mode 100755
index 0000000..78ad7b0
--- /dev/null
+++ b/port
@@ -0,0 +1,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