Ticket #11: 004-macosx-sed.patch

File 004-macosx-sed.patch, 1.1 KB (added by dmc, 3 months ago)
  • ndk-gdb

    diff --git a/ndk-gdb b/ndk-gdb
    index 8028068..9cc25b8 100755
    a b fi 
    327327# And check that they are supported by the application 
    328328# 
    329329COMPAT_ABI=none 
    330 CPU_ABI=`$ADB_CMD shell getprop ro.product.cpu.abi | sed -e 's!\\r!!g'` 
     330CPU_ABI=`$ADB_CMD shell getprop ro.product.cpu.abi | sed -e 's![[:cntrl:]]!!g'` 
    331331echo "$APP_ABIS" | grep -q -F "$CPU_ABI" 
    332332if [ $? = 0 ] ; then 
    333333    COMPAT_ABI=$CPU_ABI 
    334334fi 
    335335 
    336 CPU_ABI2=`$ADB_CMD shell getprop ro.product.cpu.abi2 | sed -e 's!\\r!!g'` 
     336CPU_ABI2=`$ADB_CMD shell getprop ro.product.cpu.abi2 | sed -e 's![[:cntrl:]]!!g'` 
    337337if [ -z "$CPU_ABI2" ] ; then 
    338338    log "Device CPU ABI: $CPU_ABI" 
    339339else 
    log "Using app out directory: $APP_OUT" 
    389389# Find the <dataDir> of the package on the device 
    390390DATA_DIR=`$ADB_CMD shell run-as $PACKAGE_NAME /system/bin/sh -c pwd` 
    391391# mmm, a rogue \r at the end, get rid of it. 
    392 DATA_DIR=`echo "$DATA_DIR" | sed -e 's!\\r!!g'` 
     392DATA_DIR=`echo "$DATA_DIR" | sed -e 's![[:cntrl:]]!!g'` 
    393393log "Found data directory: '$DATA_DIR'" 
    394394if [ $? != 0 ] ; then 
    395395    echo "ERROR: Could not extract package's data directory. Are you sure that"