Explorar o código

Make 'cpack' task as internal to avoid confusion with 'package' task.

Yao Wei Tjong 姚伟忠 %!s(int64=5) %!d(string=hai) anos
pai
achega
2240afe6b1
Modificáronse 1 ficheiros con 4 adicións e 5 borrados
  1. 4 5
      Rakefile

+ 4 - 5
Rakefile

@@ -109,11 +109,6 @@ task :package do
   system %Q{#{wrapper} cmake --build "#{dir}" #{build_config} --target package} or abort
   system %Q{#{wrapper} cmake --build "#{dir}" #{build_config} --target package} or abort
 end
 end
 
 
-desc 'Invoke CPack to generate a tarball'
-task :cpack do
-  Dir.chdir(build_tree) { system 'cpack -G TGZ' } or abort
-end
-
 
 
 ### Internal tasks ###
 ### Internal tasks ###
 
 
@@ -121,6 +116,10 @@ task :gradle, [:task] do |_, args|
   system "./gradlew #{args[:task]} #{ENV['CI'] ? '--console plain' : ''}" or abort
   system "./gradlew #{args[:task]} #{ENV['CI'] ? '--console plain' : ''}" or abort
 end
 end
 
 
+task :cpack do
+  Dir.chdir(build_tree) { system 'cpack -G TGZ' } or abort
+end
+
 task :lint do
 task :lint do
   lint_err = File.read(lint_err_file)
   lint_err = File.read(lint_err_file)
   puts lint_err
   puts lint_err