summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-04 01:00:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-04 01:00:04 +0100
commitadcaca72539b2ff4a5f4deee00d5f0251378ac9b (patch)
tree547e6a208cc04861fb178af7caadec7112596804 /scripts
parentfaa66544c82f39203dca165e8b0a931e21b3a1ba (diff)
parentf991debebbd17225a6302b7bcd51101b0f41a621 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'scripts')
-rw-r--r--scripts/split-cfg.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/split-cfg.sh b/scripts/split-cfg.sh
index 07cdd5838..297d42beb 100644
--- a/scripts/split-cfg.sh
+++ b/scripts/split-cfg.sh
@@ -4,13 +4,15 @@
# ses the slow-down.
TOPDIR=$1
+TARGET=$2
+LIBC=$3
(( x_cols = (COLUMNS > 10) ? COLUMNS - 2 : 80 ))
typeset -L$x_cols pbar
grep -v '^BUSYBOX\|^# BUSYBOX' $TOPDIR/.config > $TOPDIR/.config.split
-mkdir -p $TOPDIR/.cfg
-cd $TOPDIR/.cfg
+mkdir -p $TOPDIR/.cfg_${TARGET}_${LIBC}
+cd $TOPDIR/.cfg_${TARGET}_${LIBC}
oldfiles=$(print -r -- *)
newfiles=:
@@ -66,7 +68,7 @@ print -nu2 '\r'
# and the entire Config.in will be auto-generated anyway,
# so we're better off placing it here
#XXX this is too slow @868 configure options
-cd $TOPDIR/.cfg
+cd $TOPDIR/.cfg_${TARGET}_${LIBC}
rm -f $TOPDIR/package/*/info.mk
for option in *; do
pbar="$option ..."
@@ -78,7 +80,7 @@ for option in *; do
done | while read fname; do
[[ $ao = *:$fname:* ]] && continue
ao=$ao$fname:
- echo "\${_IPKGS_COOKIE}: \${TOPDIR}/.cfg/$option" >>$fname
+ echo "\${_IPKGS_COOKIE}: \${TOPDIR}/.cfg_${TARGET}_${LIBC}/$option" >>$fname
done
done
pbar=done