Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > d85bd69c1a50ccd81152492d07ffa725 > files > 6

ioquake3-1.36-11.svn2102.3.mga5.src.rpm

#!/bin/bash

set -e

if [ ! -f $HOME/.q3a/baseq3/pak8.pk3 ]; then
  set +e
  /usr/share/autodl/AutoDL.py /usr/share/ioquake3/ioquake3-update.autodlrc
  STATUS=$?
  set -e
  # status 2 means download was ok, but the user choice not to start the game
  if [ "$STATUS" = "0" -o "$STATUS" = "2" ]; then
    cd ~/.q3a
    sh linuxq3apoint-1.32b-3.x86.run  --tar xf -C . --exclude setup.*
    rm linuxq3apoint-1.32b-3.x86.run
  fi
else
  echo "You already have quake 3 1.32b update!" ;
fi