X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=scripts%2Funix2dos.sh;fp=build%2Farch%2Fwin32%2Funix2dos.sh;h=41e4085cdb70e67caab2e0334170890fe0463c68;hp=c3ee7a8d336f5ef54c3a721c3fdb26198f8bf6a1;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/build/arch/win32/unix2dos.sh b/scripts/unix2dos.sh similarity index 74% rename from build/arch/win32/unix2dos.sh rename to scripts/unix2dos.sh index c3ee7a8..41e4085 100755 --- a/build/arch/win32/unix2dos.sh +++ b/scripts/unix2dos.sh @@ -5,11 +5,11 @@ # 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 @@ -18,7 +18,7 @@ then 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