diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:35 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:35 -0800 |
commit | f721e3ac031f892af46f255a47d7f54a91317b30 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /distrib/update-audio.sh | |
parent | bae1bc39312d5019bd9a5b8d840a529213a69a17 (diff) | |
download | external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.zip external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.gz external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'distrib/update-audio.sh')
-rwxr-xr-x | distrib/update-audio.sh | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/distrib/update-audio.sh b/distrib/update-audio.sh deleted file mode 100755 index 56bada2..0000000 --- a/distrib/update-audio.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/bash -# -# this script is used to update the prebuilt libqemu-audio.a file in the Android source tree -# we use a prebuilt package because we don't want to force the installation of the ALSA / EsounD / Whatever -# development packages on every developer machine, or every build server. -# - -# assumes this script is located in the 'distrib' sub-directory -cd `dirname $0` -cd .. - -locate_depot_files () -{ - root=$(p4 where $1) || ( - echo "you need to map $1 into your workspace to build an emulator source release package" - exit 3 - ) - root=$(echo $root | cut -d" " -f3 | sed -e "s%/\.\.\.%%") - echo $root -} - -# find the prebuilt directory -OS=`uname -s` -EXE="" -case "$OS" in - Darwin) - CPU=`uname -p` - if [ "$CPU" == "i386" ] ; then - OS=darwin-x86 - else - OS=darwin-ppc - fi - ;; - Linux) - CPU=`uname -m` - case "$CPU" in - i?86|x86_64|amd64) - CPU=x86 - ;; - esac - OS=linux-$CPU - ;; - *_NT-*) - OS=windows - EXE=.exe - ;; -esac - -PREBUILT=$(locate_depot_files //branches/cupcake/android/prebuilt/$OS) - -# find the GNU Make program -is_gnu_make () -{ - version=$($1 -v | grep GNU) - if test -n "$version"; then - echo "$1" - else - echo "" - fi -} - -if test -z "$GNUMAKE"; then - GNUMAKE=`which make` && GNUMAKE=$(is_gnu_make $GNUMAKE) -fi - -if test -z "$GNUMAKE"; then - GNUMAKE=`which gmake` && GNUMAKE=$(is_gnu_make $GNUMAKE) -fi - -if test -z "$GNUMAKE"; then - echo "could not find GNU Make on this machine. please define GNUMAKE to point to it" - exit 3 -fi - -TEST=$(is_gnu_make $GNUMAKE) -if test -z "$TEST"; then - echo "it seems that '$GNUMAKE' is not a working GNU Make binary. please check the definition of GNUMAKE" - exit 3 -fi - -# ensure we have a recent audio library built -# -#echo "GNUMAKE is $GNUMAKE" -source=objs/libqemu-audio.a -./android-configure.sh -$GNUMAKE $source BUILD_QEMU_AUDIO_LIB=true || (echo "could not build the audio library. Aborting" && exit 1) - -# now do a p4 edit, a copy and ask for submission -# -TARGET=$PREBUILT/emulator/libqemu-audio.a - -p4 edit $TARGET || (echo "could not p4 edit $TARGET" && exit 3) -cp -f $source $TARGET -echo "please do: p4 submit $TARGET" - |