reduce_python: fix when popd (pkgconfig was't deleted)
This commit is contained in:
parent
0977b6325a
commit
3f8b91143d
1 changed files with 5 additions and 4 deletions
|
@ -4,10 +4,11 @@
|
|||
|
||||
echo "Starting reducing=========="
|
||||
|
||||
try pushd $BUILDROOT/python/lib/python2.7
|
||||
try cd $BUILDROOT/python/lib/python2.7
|
||||
find . -iname '*.pyc' | xargs rm
|
||||
find . -iname '*.py' | xargs rm
|
||||
find . -iname 'test_*' | xargs rm -rf
|
||||
rm -rf *test* config lib* wsgiref bsddb curses idlelib hotshot || true
|
||||
try popd
|
||||
find . -iname 'test*' | xargs rm -rf
|
||||
rm -rf *test* lib* wsgiref bsddb curses idlelib hotshot || true
|
||||
rm -rf
|
||||
try cd ..
|
||||
rm -rf pkgconfig || true
|
||||
|
|
Loading…
Reference in a new issue