Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
(function compile-xibs-from-to (xibs to_path) (if (and (!= target "clobber") (!= target "clean")) (then (SH "mkdir -p #{to_path}") ((filelist xibs) each:(do (xib) (set nib (xib stringByReplacingPathExtensionWith:"nib")) (SH "ibtool #{xib} --compile #{to_path}/#{( nib fileName )}"))) (filelist "^#{to_path}/[^/]*\.nib$")) (else nil))) (set @nib_files (compile-xibs-from-to "^resources/views/[^/]*\.xib$" "build/nibs"))
From the Design Piracy series on my blog: