Topic: Tabs to 4 space indentation

The FA codebase currently has a mixture of tabs and spaces used for indentation. To convert all such tabs into 4 space indentations we use the linux sponge command from moreutils package which does not alter the file permissions / ownerships / possibly timestamps.

cd /var/www/webroot
# Upload the core files
unzip core.zip
mv core core_org
unzip core.zip
apt-get install moreutils
cd core
find ./ -name '*.php' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' \{\} \;
find ./ -name '*.inc' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' \{\} \;
find ./ -name '*.css' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' \{\} \;
find ./ -name '*.js' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' \{\} \;
cd ..
diff -r core_org core > fa24_t2s.diff
tar -czf fa24_t2s.diff.tar.gz fa24_t2s.diff
zip -r core.zip core