Revision 47fd2640f74a19aa7e190da93fc70ed6d8b7a065 authored by Gaia Pushbot on 22 January 2014, 19:15:54 UTC, committed by Gaia Pushbot on 22 January 2014, 19:15:54 UTC
========

https://hg.mozilla.org/integration/gaia-1_3/rev/54db68e1e861
Author: John Hu <johu@mozilla.com>
Desc: Merge pull request #15235 from huchengtw-moz/gallery/Bug_951241-blue-line

Bug 951241 - [B2G][Gallery][Image Edit] Image preview in edit mode shows...,  r=djf
(cherry picked from commit c99867fe9ba161535e764ba6582ea13a7c25e324)

========

https://hg.mozilla.org/integration/gaia-1_3/rev/0d133e3490c7
Author: John Ford <john@johnford.info>
Desc: Revert "Merge pull request #15540 from SasikalaParuchuri/Bug_935991_Added_Test_For_Delete_Option"

This reverts commit 4c3e265f50d32d778654f81079092c94a6fd2b4f.
1 parent 7d9d398
Raw File
qemu-wrap
#!/bin/bash
# this script creates a wrapper shell script for an executable.  The idea is the actual executable cannot be
# executed natively (it was cross compiled), but we want to run tests natively.  Running this script
# as part of the compilation process will move the non-native executable to a new location, and replace it
# with a script that will run it under qemu.
while [[ -n $1 ]]; do
    case $1 in
        --qemu) QEMU="$2"; shift 2;;
        --libdir) LIBDIR="$2"; shift 2;;
        --ld) LD="$2"; shift 2;;
        *) exe="$1"; shift;;
    esac
done
if [[ -z $LIBDIR ]]; then
    echo "You need to specify a directory for the cross libraries when you configure the shell"
    echo "You can do this with --with-cross-lib="
    exit 1
fi
LD=${LD:-$LIBDIR/ld-linux.so.3}
mv $exe $exe.target
# Just hardcode the path to the executable.  It'll be pretty obvious if it is doing the wrong thing.

echo $'#!/bin/bash\n' $QEMU -E LD_LIBRARY_PATH="${LIBDIR}" "$LD" "$(readlink -f "$exe.target")" '"$@"' >"$exe"
chmod +x $exe
back to top