[Groonga-commit] pgroonga/pgroonga at e8281fc [master] Support creating tar.gz

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 28 21:29:05 JST 2015


Kouhei Sutou	2015-01-28 21:29:05 +0900 (Wed, 28 Jan 2015)

  New Revision: e8281fc55a18b47e74cbeb149e80adf31d497604
  https://github.com/pgroonga/pgroonga/commit/e8281fc55a18b47e74cbeb149e80adf31d497604

  Message:
    Support creating tar.gz

  Added files:
    Rakefile
  Modified files:
    .gitignore

  Modified: .gitignore (+1 -0)
===================================================================
--- .gitignore    2015-01-28 18:48:31 +0900 (d60c858)
+++ .gitignore    2015-01-28 21:29:05 +0900 (49a89df)
@@ -1,4 +1,5 @@
 *.o
 *.so
+*.tar.gz
 /regression.*
 /results/

  Added: Rakefile (+25 -0) 100644
===================================================================
--- /dev/null
+++ Rakefile    2015-01-28 21:29:05 +0900 (3f20251)
@@ -0,0 +1,25 @@
+# -*- ruby -*-
+
+package = "pgroonga"
+
+def find_version(package)
+  control_content = File.read("#{package}.control")
+  if /^default_version\s*=\s*'(.+)'$/ =~ control_content
+    $1
+  else
+    nil
+  end
+end
+
+version = find_version(package)
+
+archive_name = "#{package}-#{version}.tar.gz"
+
+dist_files = `git ls-files`.split("\n")
+
+file archive_name => dist_files do
+  sh("git archive --format=tar HEAD | gzip > #{archive_name}")
+end
+
+desc "Create release package"
+task :dist => archive_name
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index