#!/bin/sh
progdir=`dirname "$0"`
case "$1" in
	1)
		rm -f $progdir/../Doom\ 1.sh
		rm -f $progdir/../Doom\ 2.sh
		rm -f $progdir/../Doom\ 4\ Vanilla.sh
		rm -f $progdir/../Doom\ A.L.T.sh
		rm -f $progdir/../Doom\ Deathless.sh
		rm -f $progdir/../Doom\ Plutonia\ 1.sh
		rm -f $progdir/../Doom\ Plutonia\ 2.sh
		rm -f $progdir/../Doom\ Requiem.sh
		rm -f $progdir/../Doom\ Sigil.sh
		rm -f $progdir/../Doom\ TNT.sh
		rm -f $progdir/../Doom\ Ultimate.sh
		cp -f $progdir/毁灭战士\ 1.sh $progdir/../
		cp -f $progdir/毁灭战士\ 2.sh $progdir/../
		cp -f $progdir/毁灭战士\ 4\ Vanilla.sh $progdir/../
		cp -f $progdir/毁灭战士\ A.L.T.sh $progdir/../
		cp -f $progdir/毁灭战士\ Deathless.sh $progdir/../
		cp -f $progdir/毁灭战士\ Plutonia\ 1.sh $progdir/../
		cp -f $progdir/毁灭战士\ Plutonia\ 2.sh $progdir/../
		cp -f $progdir/毁灭战士\ Requiem.sh $progdir/../
		cp -f $progdir/毁灭战士\ Sigil.sh $progdir/../
		cp -f $progdir/毁灭战士\ TNT.sh $progdir/../
		cp -f $progdir/毁灭战士\ Ultimate.sh $progdir/../
		sync
		;;
	2)
		rm -f $progdir/../毁灭战士\ 1.sh
		rm -f $progdir/../毁灭战士\ 2.sh
		rm -f $progdir/../毁灭战士\ 4\ Vanilla.sh
		rm -f $progdir/../毁灭战士\ A.L.T.sh
		rm -f $progdir/../毁灭战士\ Deathless.sh
		rm -f $progdir/../毁灭战士\ Plutonia\ 1.sh
		rm -f $progdir/../毁灭战士\ Plutonia\ 2.sh
		rm -f $progdir/../毁灭战士\ Requiem.sh
		rm -f $progdir/../毁灭战士\ Sigil.sh
		rm -f $progdir/../毁灭战士\ TNT.sh
		rm -f $progdir/../毁灭战士\ Ultimate.sh
		cp -f $progdir/Doom\ 1.sh $progdir/
		cp -f $progdir/Doom\ 2.sh $progdir/
		cp -f $progdir/Doom\ 4\ Vanilla.sh $progdir/
		cp -f $progdir/Doom\ A.L.T.sh $progdir/
		cp -f $progdir/Doom\ Deathless.sh $progdir/
		cp -f $progdir/Doom\ Plutonia\ 1.sh $progdir/
		cp -f $progdir/Doom\ Plutonia\ 2.sh $progdir/
		cp -f $progdir/Doom\ Requiem.sh $progdir/
		cp -f $progdir/Doom\ Sigil.sh $progdir/
		cp -f $progdir/Doom\ TNT.sh $progdir/
		cp -f $progdir/Doom\ Ultimate.sh $progdir/
		sync
		;;
esac
