]> Dogcows Code - chaz/yoink/blob - arch/win32/unix2dos.sh
configure typo fix
[chaz/yoink] / arch / win32 / unix2dos.sh
1 #!/bin/sh
2
3 #
4 # Yoink
5 # An implementation of unix2dos using sed.
6 #
7
8 if [ -f "$1" ];
9 then
10 TMPFILE="$1.$$"
11 sed 's/\r*$/\r/' "$1" >$TMPFILE
12 if [ ! "$2" ];
13 then
14 mv -f "$TMPFILE" "$1"
15 else
16 mv -f "$TMPFILE" "$2"
17 fi
18 rm -f "$TMPFILE"
19 else
20 echo "`basename $0` infile [outfile]"
21 echo " convert a file from unix to dos file format"
22 exit 1
23 fi
24
This page took 0.034568 seconds and 4 git commands to generate.