aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_make_clean
blob: fa3a543d83436a4f087371386e7d3dcc832faa9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

b=`basename $PWD`
test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; }

cd ..
cp -pPR "$b" busybox.$$.test_tree
cd busybox.$$.test_tree
make defconfig
make $MAKEOPTS
make clean
cd ..
diff -urp "$b" busybox.$$.test_tree >busybox.$$.test_tree.diff
cat busybox.$$.test_tree.diff