dosbox-x/dos2unix.sh
Jookia b3fa848f0f Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
2022-12-12 17:52:27 +08:00

6 lines
122 B
Bash
Executable File

#!/usr/bin/env bash
for ext in c cpp h; do
find -iname \*.$ext | while read X; do dos2unix -- "$X" || exit 1; done
done