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

mkdir -p $topdir/target/packages/pkg-enabled
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