X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fad2c;h=0a543ba9b2d366fb1fdcf333bbee25c8833bb317;hp=1435e554c0fdd235e4ca888b89cb66a2618e9598;hb=bc7b7a8eb122206d239ec0e693676bcce31be1aa;hpb=ffd8c0873576a9e3065696a624dce6b766b77062 diff --git a/utils/ad2c b/utils/ad2c index 1435e554..0a543ba9 100755 --- a/utils/ad2c +++ b/utils/ad2c @@ -11,8 +11,12 @@ # with Sun sed, of course. # 7 Jan 1992: matthew@sunpix.East.Sun.COM (Matthew Stier) # Escape quotes after escaping backslashes. +# 22 Oct 2004: jwz: +# Convert CR to LF. # +#sed 's/\r/\n/g' "$@" | +perl -npe 's/\r/\n/g' < "$@" | sed ' /^!/d /^$/d @@ -35,4 +39,4 @@ s/\\n/\\\\n/g s/\\t/\\\\t/g s/\\f/\\\\f/g s/\\b/\\\\b/g -b test' "$@" +b test'