fix momc line by using absolute paths

This commit is contained in:
Laurent Sansonetti
2012-05-18 14:51:01 +02:00
parent 6b41cb525c
commit 7cd769a23f

View File

@@ -303,6 +303,8 @@ EOS
momd = model.sub(/\.xcdatamodeld$/, '.momd')
if !File.exist?(momd) or File.mtime(model) > File.mtime(momd)
App.info 'Compile', model
model = File.expand_path(model) # momc wants absolute paths.
momd = File.expand_path(momd)
sh "\"#{App.config.xcode_dir}/usr/bin/momc\" \"#{model}\" \"#{momd}\""
end
end