swc/crates/swc_ecma_parser/scripts/dos2unix.sh
2021-11-10 19:00:54 +09:00

9 lines
148 B
Bash
Executable File

#!/usr/bin/env bash
for x
do
echo "Converting $x"
mkdir -p $(dirname "tmp.$x")
tr -d '\015' < "$x" > "tmp.$x"
mv "tmp.$x" "$x"
done