Permalink
Browse files

Reorganized and verified that the extension is still working

  • Loading branch information...
1 parent 691d9fd commit 5036d2ff8e84063c8bbdbe233a13c4fd3052cd4f @rfletcher committed Feb 25, 2012
View
@@ -0,0 +1 @@
+build/
View
@@ -25,5 +25,5 @@ will display the value 100.
[1]: http://github.com/rfletcher/safari-json-formatter/downloads
[2]: http://github.com/rfletcher/safari-json-formatter/commit/HEAD.json
-[i1]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/images/before.png
-[i2]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/images/after.png
+[i1]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/etc/images/before.png
+[i2]: https://github.com/rfletcher/safari-json-formatter/raw/HEAD/etc/images/after.png
View
@@ -0,0 +1,22 @@
+task :default do
+ build_dir = "build/JSON Formatter.safariextension"
+
+ FileUtils.rm_rf( build_dir )
+ FileUtils.mkdir_p( build_dir )
+
+ assets = [
+ "etc/Info.plist",
+ "etc/Settings.plist",
+ "etc/Update.plist",
+ "src/*"
+ ]
+
+ assets.each do |glob|
+ Dir.glob( glob ).each do |src|
+ puts "linking #{src}"
+ dest = "#{build_dir}/#{File.basename( src )}"
+ FileUtils.mkdir_p( File.dirname( dest ) )
+ FileUtils.link( src, dest )
+ end
+ end
+end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit 5036d2f

Please sign in to comment.