aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-05-02 17:46:45 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-05-02 17:46:45 +0000
commit10e68a9556f59db2c9d6a1d9a6698656715d8136 (patch)
treeca776bb3c8a6e7ec772fa866759dae0e363c1eb6
parent3ffd49782cf578d7af722a1f1054d1ef8f048eb8 (diff)
downloadforums-10e68a9556f59db2c9d6a1d9a6698656715d8136.tar
forums-10e68a9556f59db2c9d6a1d9a6698656715d8136.tar.gz
forums-10e68a9556f59db2c9d6a1d9a6698656715d8136.tar.bz2
forums-10e68a9556f59db2c9d6a1d9a6698656715d8136.tar.xz
forums-10e68a9556f59db2c9d6a1d9a6698656715d8136.zip
Ran John's fix_files script to fix all the windows carriage returns.
Also added the script in the develop dir. To use it copy it to the phpBB2 root dir and run it git-svn-id: file:///svn/phpbb/trunk@228 89ea8834-ac86-4346-8a33-228a782c2dd0
-rwxr-xr-xphpBB/develop/fix_files.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/develop/fix_files.sh b/phpBB/develop/fix_files.sh
new file mode 100755
index 0000000000..19b04d0b93
--- /dev/null
+++ b/phpBB/develop/fix_files.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Remove all those annoying ^M characters that Winblows editor's like to add
+# from all files in the current directory and all subdirectories.
+#
+# Written by: Jonathan Haase.
+
+find . > FILELIST.$$
+grep -sv FILELIST FILELIST.$$ > FILELIST2.$$
+grep -sv $(basename $0) FILELIST2.$$ > FILELIST.$$
+grep -sv "^\.$" FILELIST.$$ > FILELIST
+rm FILELIST2.$$
+rm FILELIST.$$
+
+for i in $(cat FILELIST); do
+ if [ -f $i ]; then
+ sed -e s/
+//g $i > $i.tmp
+ mv $i.tmp $i
+ fi
+done
+rm FILELIST