• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3# Copy Quake's data files from perforce to the Android device's sd card.
4# Based on emulator.sh
5#
6
7# We need some internal functions defined in envsetup.sh, so start
8# by finding this file and sourcing it before anything else
9#
10function gettop
11{
12    echo $TOP
13}
14
15T=$(gettop)
16if [ -z "$T" ] ; then
17    echo "please run your envsetup.sh script"
18    exit 1
19fi
20
21echo "top found at $T"
22
23echo "Creating Quake directories on the device's sdcard"
24
25adb shell mkdir /sdcard
26adb shell mkdir /sdcard/data
27adb shell mkdir /sdcard/data/quake
28adb shell mkdir /sdcard/data/quake/id1
29
30echo "Copying Quake data files to the device. (This could take several minutes)"
31adb push $T/external/quake/quake/app/id1 /sdcard/data/quake/id1
32echo "Done."
33