<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Tabs to 4 space indentation]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6896</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6896&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Tabs to 4 space indentation.]]></description>
		<lastBuildDate>Fri, 28 Jul 2017 13:35:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Tabs to 4 space indentation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28292#p28292</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 28 Jul 2017 13:35:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28292#p28292</guid>
		</item>
	</channel>
</rss>
