echo ""
echo ""
echo "(*) GLOBAL-WAR (*)"
echo "By Chris Cowan"
echo "Copyright (c) 1990-1994 Outlaw Technology"
echo "" 
echo "Updating Global-War..."
echo ""
if not exists pfiles:
  echo "Please assign the pfiles: directory!"
endif
if exists pfiles:
  if not exists pfiles:global/data
    echo "Creating pfiles:global/data directory..."
    makedir "pfiles:global/data"
  endif
  echo "Copying files..."
  copy Global-War pfiles:global
  copy global.welcome pfiles:
  copy _gw.config pfiles:global
  copy _gw.data pfiles:global
  copy text.lha pfiles:global/text
  copy data.lha pfiles:global/data
  copy maps.lha pfiles:global/maps
  if not exists c:lha
    echo "Missing LHA...cannot break down Global-War .LHA files!"
  endif
  if exists c:lha
    echo "Unarc'ing data.lha file..."
    cd pfiles:global/data 
    lha -m x data.lha
  endif
  if exists c:lha
    echo "Unarc'ing maps.lha file..."
    cd pfiles:global/maps 
    lha -m x maps.lha
  endif
  if exists c:lha
    echo "Unarc'ing text.lha file..."
    cd pfiles:global/text 
    lha -m x text.lha
  endif
  cd pfiles:
  echo ""
  echo "Update complete!"
  echo ""
  echo ""
endif