+#!/bin/sh
+
+# An implementation of unix2dos using sed.
+# Written by Charles McGarvey; released into the public domain.
+
+if [ -f "$1" ];
+then
+ TMPFILE="$1.$$"
+ sed 's/\r*$/\r/' "$1" >$TMPFILE
+ if [ ! "$2" ];
+ then
+ cp -f "$TMPFILE" "$1"
+ else
+ cp -f "$TMPFILE" "$2"
+ fi
+ rm -f "$TMPFILE"
+else
+ echo "`basename $0` infile [outfile]"
+ echo " convert a file from unix to dos file format"
+ exit 1
+fi
+