| # Copy Quake's data files from perforce to the Android device's sd card. |
| # We need some internal functions defined in envsetup.sh, so start |
| # by finding this file and sourcing it before anything else |
| TOPFILE=config/envsetup.make |
| if [ -n "$TOP" -a -f "$TOP/$TOPFILE" ] ; then |
| if [ -f $TOPFILE ] ; then |
| while [ \( ! \( -f $TOPFILE \) \) -a \( $PWD != "/" \) ]; do |
| if [ -f "$T/$TOPFILE" ]; then |
| echo "please run your envsetup.sh script" |
| echo "Removing Quake files and directories from the device's sdcard" |
| adb shell rm /sdcard/data/quake/id1/glQuake/* |
| adb shell rm /sdcard/data/quake/id1/glQuake/.DS_Store |
| adb shell rmdir /sdcard/data/quake/glQuake |
| adb shell rm /sdcard/data/quake/id1/* |
| adb shell rm /sdcard/data/quake/id1/.DS_Store |
| adb shell rmdir /sdcard/data/quake/id1 |
| adb shell rm /sdcard/data/quake/.DS_Store |
| adb shell rmdir /sdcard/data/quake |