diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-30 23:12:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-30 23:12:32 +0100 |
commit | 23251c0c6ee9f7c0d3c4b20a5db9f51b4a0cc361 (patch) | |
tree | 1733ae79f43339c477e22184105194f37cef39df /scripts | |
parent | 5bfdfbcee97c930c3c14dc3745089ac28e76ca41 (diff) |
fix some bugs, when starting with fresh checkout
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-pkg | 10 | ||||
-rwxr-xr-x | scripts/create-sys | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/create-pkg b/scripts/create-pkg new file mode 100755 index 000000000..b9b47ae2a --- /dev/null +++ b/scripts/create-pkg @@ -0,0 +1,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 diff --git a/scripts/create-sys b/scripts/create-sys index 7af098868..bf92870a1 100755 --- a/scripts/create-sys +++ b/scripts/create-sys @@ -4,7 +4,8 @@ systems=$(grep -h config target/*/sys-available/*|cut -d " " -f 2) while read arch; do count=1 - cd $topdir/target/$arch/sys-enabled/ && + mkdir -p $topdir/target/$arch/sys-enabled && + cd $topdir/target/$arch/sys-enabled && ln -sf ../sys-available/toolchain 0-toolchain for i in $(ls $topdir/target/$arch/sys-available/|grep -v toolchain);do cd $topdir/target/$arch/sys-enabled/ && |