forked from madeye/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup.sh
More file actions
executable file
·44 lines (41 loc) · 849 Bytes
/
cleanup.sh
File metadata and controls
executable file
·44 lines (41 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
find -name "*.pyo" | xargs rm
find -name "*.py" | xargs rm
find -name "*.a" | xargs rm
chmod +w lib/libpython2.7.so
find -name "*.so" | xargs /var/lib/jenkins/tools/android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-strip
rm -rf share/
rm -rf bin/
rm -rf lib/pkgconfig/
pushd include
mv python2.7/pyconfig.h .
rm -rf python2.7/*
mv pyconfig.h python2.7/
popd
pushd lib/python2.7
rm site-packages/README
mv site-packages/* .
rm -rf site-packages/
rm -rf ctypes/
rm -rf pkgconfig/
rm -rf sqlite3/
rm -rf email/
rm -rf lib2to3/
rm -rf distutils/
rm -rf bsddb/
rm -rf pydoc*
rm -rf test/
rm -rf multiprocessing/
rm -rf lib-tk/
rm -rf idlelib/
rm -rf unittest/
rm -rf wsgiref/
rm -rf xml/
rm -rf compiler/
rm -rf curses/
rm mailbox.pyc
rm pdb.pyc
rm ftplib.pyc
rm bdb.pyc
rm audiodev.pyc
popd