[Groonga-commit] groonga/groonga at b680ee9 [master] package windows: add a task to generate pdb

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Thu Oct 19 16:23:53 JST 2017


Kouhei Sutou	2017-10-19 16:23:53 +0900 (Thu, 19 Oct 2017)

  New Revision: b680ee9401f8c2958e8d6a2b2ecf440c7af458ca
  https://github.com/groonga/groonga/commit/b680ee9401f8c2958e8d6a2b2ecf440c7af458ca

  Message:
    package windows: add a task to generate pdb

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+29 -1)
===================================================================
--- packages/windows/Rakefile    2017-10-19 15:23:33 +0900 (cddd2c3fc)
+++ packages/windows/Rakefile    2017-10-19 16:23:53 +0900 (f6a41ce4d)
@@ -15,12 +15,14 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
+require "digest"
 require "pathname"
 require "open-uri"
 
 base_dir = Pathname.new(__FILE__).dirname
 
-groonga_win32_x86_p = ENV["ARCHITECTURE"] == "x86"
+architecture = ENV["ARCHITECTURE"]
+groonga_win32_x86_p = architecture == "x86"
 groonga_version = ENV["VERSION"]
 groonga_source = Pathname.new(ENV["SOURCE"]).expand_path
 debug_build_p = ENV["DEBUG_BUILD"] == "yes"
@@ -546,3 +548,29 @@ build_dependencies = [
 ]
 desc "Build and install them into #{dist_dir}/."
 task :build => build_dependencies
+
+namespace :pdb do
+  desc "Generate *.pdb for *.exe and *.dll in zip archive"
+  task :generate do
+    suffix = ENV["SUFFIX"]
+    dir_name = "groonga-#{groonga_version}-#{architecture}#{suffix}"
+    zip_path = "#{dir_name}.zip"
+    sha256_path = "#{zip_path}.sha256"
+    url = "https://packages.groonga.org/tmp/#{zup_path}"
+    rm_f(zip_path)
+    download(url, ".")
+    sh("7z", "x", zip_path)
+    cd(dir_name) do
+      sh("bin/generate-pdb.bat")
+    end
+    rm_f(zip_path)
+    sh("7z", "a", zip_path, dir_name)
+    File.open(sha256_path, "wb") do |sha256|
+      sha256.puts("#{Digest::SHA256.file(zip_path).hexdigest}  #{zip_path}")
+    end
+    sh("scp",
+       zip_path,
+       sha256_path,
+       "packages �� packages.groonga.org:public/tmp/")
+  end
+end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171019/dd923ad6/attachment-0001.htm 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る