mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-20 07:42:09 +02:00
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
This commit is contained in:
parent
3ffd49782c
commit
10e68a9556
22
phpBB/develop/fix_files.sh
Executable file
22
phpBB/develop/fix_files.sh
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user