diff --git a/Dollar/Dollar.xcodeproj/project.pbxproj b/Dollar/Dollar.xcodeproj/project.pbxproj index 5bd0b5d..e550e3b 100644 --- a/Dollar/Dollar.xcodeproj/project.pbxproj +++ b/Dollar/Dollar.xcodeproj/project.pbxproj @@ -244,7 +244,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/bash; - shellScript = ""; + shellScript = "ruby ${PROJECT_DIR}/gen_auto_curry.rb\n"; }; /* End PBXShellScriptBuildPhase section */ diff --git a/Dollar/gen_auto_curry.rb b/Dollar/gen_auto_curry.rb index a482b5e..e129628 100644 --- a/Dollar/gen_auto_curry.rb +++ b/Dollar/gen_auto_curry.rb @@ -21,6 +21,6 @@ def curry_generator(n) "}" ].join("\n\n") -File.open("/Users/ankur/Personal/Dollar.swift/Dollar/Dollar/AutoCurry.swift", "w") do |file| +File.open("#{File.dirname(__FILE__)}/Dollar/AutoCurry.swift", "w") do |file| file.write(funcs) end