summaryrefslogtreecommitdiff
path: root/scripts/create-pkg
blob: 35961ae5491f6ee45957381e442b4ea49d37f466 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))

mkdir -p $topdir/target/packages/pkg-enabled
rm $topdir/target/packages/pkg-enabled/* 2>/dev/null
count=1
for i in $(ls $topdir/target/packages/pkg-available/);do
	cd $topdir/target/packages/pkg-enabled &&
	ln -sf ../pkg-available/$i $count-$i
	count=$((count+1))
done