<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Build script for Firefox extensions in Mac OS X</title>
	<atom:link href="http://arjansnaterse.nl/build-script-firefox-extensions-mac-os/feed" rel="self" type="application/rss+xml" />
	<link>http://arjansnaterse.nl/build-script-firefox-extensions-mac-os</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 21:12:49 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sebastian Hennebrueder</title>
		<link>http://arjansnaterse.nl/build-script-firefox-extensions-mac-os/comment-page-1#comment-164</link>
		<dc:creator>Sebastian Hennebrueder</dc:creator>
		<pubDate>Thu, 16 Jul 2009 19:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://arjansnaterse.nl/?p=151#comment-164</guid>
		<description>Hello,
I have shortended your script and made it more stable.
mkdir -p foo/bar/bazz will create the full path if it doesn&#039;t exist yet. In addition I replaced the copy with a find in case there are no update files and I make the copying of the preferences optional.

Here is my result
Best Regards / Viele Grüße
Sebastian Hennebrueder

#!/bin/bash

# @(#) --Builds Firefox extensions
BASELOC=$PWD
EXTENSION=$1
 
mkdir -p ./build/chrome
cd ./chrome
rm -f .DS_Store
zip -r $EXTENSION.jar ./
 
mv $EXTENSION.jar .././build/chrome
cd $BASELOC
 
cp ./install.* ./build
find . -name &#039;update.*&#039; &#124; xargs -I % cp % ./build
cp ./*.manifest ./build

if [ -d &quot;./defaults/preferences&quot; ]; then
 mkdir -p ./build/defaults/preferences
 cd ./defaults/preferences
 cp ./*.* ../../build/defaults/preferences
fi
cd &quot;$BASELOC/build&quot;

rm -f .DS_Store

zip -r $EXTENSION.xpi ./*
mv $EXTENSION.xpi ../
cd ../
rm -r build
 
## Restart Firefox and install extension
#killall firefox-bin &amp;&amp; /Applications/Firefox.app/Contents/MacOS/firefox -install-global-extension $PWD/$EXTENSION.xpi &amp;&amp; open -a Firefox</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I have shortended your script and made it more stable.<br />
mkdir -p foo/bar/bazz will create the full path if it doesn&#8217;t exist yet. In addition I replaced the copy with a find in case there are no update files and I make the copying of the preferences optional.</p>
<p>Here is my result<br />
Best Regards / Viele Grüße<br />
Sebastian Hennebrueder</p>
<p>#!/bin/bash</p>
<p># @(#) &#8211;Builds Firefox extensions<br />
BASELOC=$PWD<br />
EXTENSION=$1</p>
<p>mkdir -p ./build/chrome<br />
cd ./chrome<br />
rm -f .DS_Store<br />
zip -r $EXTENSION.jar ./</p>
<p>mv $EXTENSION.jar .././build/chrome<br />
cd $BASELOC</p>
<p>cp ./install.* ./build<br />
find . -name &#8216;update.*&#8217; | xargs -I % cp % ./build<br />
cp ./*.manifest ./build</p>
<p>if [ -d "./defaults/preferences" ]; then<br />
 mkdir -p ./build/defaults/preferences<br />
 cd ./defaults/preferences<br />
 cp ./*.* ../../build/defaults/preferences<br />
fi<br />
cd &#8220;$BASELOC/build&#8221;</p>
<p>rm -f .DS_Store</p>
<p>zip -r $EXTENSION.xpi ./*<br />
mv $EXTENSION.xpi ../<br />
cd ../<br />
rm -r build</p>
<p>## Restart Firefox and install extension<br />
#killall firefox-bin &amp;&amp; /Applications/Firefox.app/Contents/MacOS/firefox -install-global-extension $PWD/$EXTENSION.xpi &amp;&amp; open -a Firefox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extensions build script updated &#124; Arjan Snaterse</title>
		<link>http://arjansnaterse.nl/build-script-firefox-extensions-mac-os/comment-page-1#comment-37</link>
		<dc:creator>Extensions build script updated &#124; Arjan Snaterse</dc:creator>
		<pubDate>Mon, 19 Jan 2009 22:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://arjansnaterse.nl/?p=151#comment-37</guid>
		<description>[...] I wrote a post about building Firefox extensions in Mac OS. Unfortunately the script didn&#8217;t work perfectly so I have updated it [...]</description>
		<content:encoded><![CDATA[<p>[...] I wrote a post about building Firefox extensions in Mac OS. Unfortunately the script didn&#8217;t work perfectly so I have updated it [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
