a0ee6a8680e98c8dc41b36f98a479c54d71056a3
[external/busybox.git] / util-linux / scripts / test_make_O
1 #!/bin/sh
2
3 b=`basename $PWD`
4 test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; }
5
6 rm -rf ../testdir_make_O.$$
7 mkdir ../testdir_make_O.$$
8 odir=`cd ../testdir_make_O.$$ && pwd`
9 test -d "$odir" || exit 1
10
11 make O="$odir" $MAKEOPTS "$@" defconfig busybox 2>&1 | tee test_make_O.log