2011-01-20 16:56:30 +01:00
|
|
|
#!/bin/sh
|
2011-12-14 08:40:48 +01:00
|
|
|
# Use this script formats all text files to use consistent line endings
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
|
|
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
2011-01-20 16:56:30 +01:00
|
|
|
|
2013-10-31 01:57:36 +01:00
|
|
|
echo 'Requires tools from: sudo apt-get install tofrodos'
|
2011-01-20 16:56:30 +01:00
|
|
|
cd ../../
|
|
|
|
find -name "*\.cpp" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.c" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.h" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.txt" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.lng" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.xml" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.ini" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.sh" -exec fromdos -d {} \;
|
2013-10-31 01:57:36 +01:00
|
|
|
find -name "*\.php" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.sql" -exec fromdos -d {} \;
|
|
|
|
find -name "*\.pl" -exec fromdos -d {} \;
|
2011-01-20 16:56:30 +01:00
|
|
|
|