1
0

create-pkg 322 B

12345678910
  1. #!/usr/bin/env bash
  2. topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))
  3. mkdir -p $topdir/target/packages/pkg-enabled
  4. count=1
  5. for i in $(ls $topdir/target/packages/pkg-available/);do
  6. cd $topdir/target/packages/pkg-enabled &&
  7. ln -sf ../pkg-available/$i $count-$i
  8. count=$((count+1))
  9. done