
ETSPKG=../../../default/files/game_packages/${1}
ETSGAME=../../../all/extra/games/${1}

if [ "${1}" == "" ]; then
  echo Please specify the game machine name
  exit
fi

# Test -d or -e does not work and I have no time for that
ls ${ETSPKG} > /dev/null

if [ "$?" == "1" ]; then
  mkdir ${ETSPKG}
  echo "Directory created: retry"
  exit
fi

# Test -d or -e does not work and I have no time for that
ls ${ETSGAME} > /dev/null

if [ "$?" == "1" ]; then
  exit
fi

rm -f ${ETSPKG}/*

cp -rp ${ETSGAME}/* ${ETSPKG}

