#!/bin/sh

GDIR="$HOME/.gish"
GSHARE="/usr/share/games/gish"

test -d "$GDIR" || {
  test -d "$GSHARE" || {
    gxmessage "You must install your copy of GISH files into $GSHARE or $GDIR"
    exit 1; }
  cp -rs "$GSHARE" "$GDIR"
  chmod -R +wX "$GDIR" 2>/dev/null
  rm "$GDIR"/* 2>/dev/null
}
cd "$GDIR"
$0.bin "$@"
