lib/core/build.rb in buildr-1.2.2 vs lib/core/build.rb in buildr-1.2.3
- old
+ new
@@ -111,15 +111,19 @@
# make()
#
# Make a release.
def make()
check
- version = with_next_version { |filename, version| sh "buildr clean upload DEBUG=no --buildfile #{filename}" }
+ version = with_next_version { |filename, version| sh "#{command} clean upload DEBUG=no --buildfile #{filename}" }
tag version
commit version + "-SNAPSHOT"
end
protected
+
+ def command() #:nodoc:
+ Config::CONFIG["arch"] =~ /dos|win32/i ? $PROGRAM_NAME.ext("cmd") : $PROGRAM_NAME
+ end
# :call-seq:
# check()
#
# Check that we don't have any local changes in the working copy. Fails if it finds anything