<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Tabs to 4 space indentation]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6896&amp;type=atom" />
	<updated>2017-07-28T13:35:27Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6896</id>
		<entry>
			<title type="html"><![CDATA[Tabs to 4 space indentation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28292#p28292" />
			<content type="html"><![CDATA[<p>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 <strong>sponge</strong> command from <strong>moreutils</strong> package which does not alter the file permissions / ownerships / possibly timestamps.</p><div class="codebox"><pre><code>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 &#039;*.php&#039; -type f -exec bash -c &#039;expand -t 4 &quot;$0&quot; | sponge &quot;$0&quot;&#039; \{\} \;
find ./ -name &#039;*.inc&#039; -type f -exec bash -c &#039;expand -t 4 &quot;$0&quot; | sponge &quot;$0&quot;&#039; \{\} \;
find ./ -name &#039;*.css&#039; -type f -exec bash -c &#039;expand -t 4 &quot;$0&quot; | sponge &quot;$0&quot;&#039; \{\} \;
find ./ -name &#039;*.js&#039; -type f -exec bash -c &#039;expand -t 4 &quot;$0&quot; | sponge &quot;$0&quot;&#039; \{\} \;
cd ..
diff -r core_org core &gt; fa24_t2s.diff
tar -czf fa24_t2s.diff.tar.gz fa24_t2s.diff
zip -r core.zip core</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-28T13:35:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28292#p28292</id>
		</entry>
</feed>
