Retro68/prepare-rincludes.sh
Wolfgang Thaller e6ba1bf012 make interfaces-and-libraries.sh work with spaces in source path name
Now that it's a separate script, people might invoke it with more varied paths.
2019-08-17 21:35:52 +02:00

12 lines
216 B
Bash

IN="$1"
OUT="$2"
# Make Mac OS X's tr and sed not complain that the files are not UTF-8
export LC_ALL=C
# cp $IN/[A-Z]*.r $OUT/
for file in $(cd "$IN"; ls [A-Z]*.r); do
tr '\r' '\n' < $IN/$file > $OUT/$file
done