]> Dogcows Code - chaz/yoink/blobdiff - scripts/unix2dos.sh
remove some unused stlplus modules
[chaz/yoink] / scripts / unix2dos.sh
similarity index 74%
rename from build/arch/win32/unix2dos.sh
rename to scripts/unix2dos.sh
index c3ee7a8d336f5ef54c3a721c3fdb26198f8bf6a1..41e4085cdb70e67caab2e0334170890fe0463c68 100755 (executable)
@@ -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 
 
This page took 0.019368 seconds and 4 git commands to generate.