# An implementation of unix2dos using sed.
#
-if [ -f "$1" ];
+if [ -f "$1" ]
then
TMPFILE="$1.$$"
sed 's/\r*$/\r/' "$1" >$TMPFILE
- if [ ! "$2" ];
+ if [ ! "$2" ]
then
mv -f "$TMPFILE" "$1"
else
rm -f "$TMPFILE"
else
echo "`basename $0` infile [outfile]"
- echo " convert a file from unix to dos file format"
+ echo " convert a text file from unix to dos line-endings"
exit 1
fi