#!/bin/sh
#***************************************************************************
# PROJECT : MusixTeX Preprocessor  
# FILE    : doc/configure
#***************************************************************************

if test -r good-ex
then
	exit 0
fi

rm x
ex -s x <<EOF
w!
q
EOF

echo "#!/bin/sh" > good-ex
echo "# this file is generated by configure." >> good-ex
echo "# changes will be lost." >> good-ex

if test -r x 
then
	echo "ex -s \$*" >> good-ex
else
	echo "ex -e \$*" >> good-ex
fi
chmod +x good-ex

