<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Trigger_build_on_file_save</id>
	<title>Trigger build on file save - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Trigger_build_on_file_save"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Trigger_build_on_file_save&amp;action=history"/>
	<updated>2026-05-15T14:45:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Trigger_build_on_file_save&amp;diff=56748&amp;oldid=prev</id>
		<title>Unhammer: Created page with &quot;This page shows how to get compilation on save.  ==Prerequisites== &lt;pre&gt;sudo apt-get install inotify-tools&lt;/pre&gt;  ==Usage== Run something like this in a terminal in your langu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Trigger_build_on_file_save&amp;diff=56748&amp;oldid=prev"/>
		<updated>2016-03-02T09:24:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page shows how to get compilation on save.  ==Prerequisites== &amp;lt;pre&amp;gt;sudo apt-get install inotify-tools&amp;lt;/pre&amp;gt;  ==Usage== Run something like this in a terminal in your langu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page shows how to get compilation on save.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install inotify-tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
Run something like this in a terminal in your language data directory (replacing &amp;quot;apertium-foo&amp;quot; for your monolingual data dir):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
while inotifywait -e modify *.{dix,lrx,t?x} ../../languages/apertium-foo/*.{dix,rlx}; do&lt;br /&gt;
   make -j4 langs&lt;br /&gt;
   echo &amp;#039;test ei testsetning&amp;#039; | apertium -d . nno-nob-dgen&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then edit e.g. a dix file and save it, and see your terminal magically trigger a rebuild :-)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You could also make it just validate on save, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
while inotifywait -e modify *.dix; do&lt;br /&gt;
   for f in *.dix; do apertium-validate-dictionary &amp;quot;$f&amp;quot;;done&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Unhammer</name></author>
		
	</entry>
</feed>