]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-android: Restrict Python assets to .py files
authorMarcus Comstedt <redacted>
Tue, 8 Jul 2014 07:41:34 +0000 (09:41 +0200)
committerUwe Hermann <redacted>
Mon, 25 Aug 2014 20:38:44 +0000 (22:38 +0200)
cross-compile/android/sigrok-cross-android

index 8412bff69819fdb5650c75df5a8dd514ee24c5b2..8b3fe12c6819beca793d7996dd391c5670adcb87 100755 (executable)
@@ -325,7 +325,7 @@ cp icons/sigrok-logo-notext.png java/res/drawable/logo.png
 cd java
 mkdir -p assets
 READELF=$TOOLCHAIN_TRIPLET-readelf ../../../fix-libraries.sh "$PREFIX/lib" libs/"$TARGET_ARCH" libpulseview.so > assets/liblist.txt
-cp -r "$PREFIX"/lib/python3.3 assets/
+(cd "$PREFIX"/lib && find python3.3 -name '*.py' | cpio -o) | (cd assets && cpio -id)
 cp -r "$PREFIX"/share/libsigrokdecode assets/
 cp ${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/${NDK_TOOLCHAIN_VERSION}/libs/${TARGET_ARCH}/libgnustl_shared.so libs/${TARGET_ARCH}/
 "$ANDROID_TOOLS/android" update project -p . -t android-14 -n PulseView