Home | History | Annotate | Download | only in quake
      1 #!/bin/bash
      2 #
      3 # Copy Quake's data files from perforce to the Android device's data directory.
      4 # Based on emulator.sh
      5 #
      6 
      7 # This funcion is copied from envsetup.sh
      8 
      9 function gettop
     10 {
     11     echo $TOP
     12 }
     13 
     14 T=$(gettop)
     15 if [ -z "$T" ] ; then
     16     echo "please run your envsetup.sh script"
     17     exit 1
     18 fi
     19 
     20 echo "top found at $T"
     21 
     22 
     23 echo "Creating Quake directories on the device"
     24 
     25 adb shell mkdir /data
     26 adb shell mkdir /data/quake
     27 adb shell mkdir /data/quake/id1
     28 
     29 echo "Copying Quake data files to the device. (This could take several minutes)"
     30 adb push $T/external/quake/quake/app/id1 /data/quake/id1
     31 echo "Done."
     32