[Groonga-commit] groonga/groonga-normalizer-mysql at a8d5f4a [master] package ubuntu: add a make target to upload to Launchpad

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Apr 28 15:34:17 JST 2014


Kouhei Sutou	2014-04-28 15:34:17 +0900 (Mon, 28 Apr 2014)

  New Revision: a8d5f4afeb3b43c2c77e74aa840ce96cfb23c378
  https://github.com/groonga/groonga-normalizer-mysql/commit/a8d5f4afeb3b43c2c77e74aa840ce96cfb23c378

  Message:
    package ubuntu: add a make target to upload to Launchpad

  Added files:
    packages/ubuntu/Makefile.am
  Modified files:
    .gitignore
    configure.ac
    packages/Makefile.am

  Modified: .gitignore (+4 -0)
===================================================================
--- .gitignore    2014-04-28 15:33:20 +0900 (f2142f9)
+++ .gitignore    2014-04-28 15:34:17 +0900 (80ba0b0)
@@ -10,6 +10,7 @@ CMakeCache.txt
 Makefile
 Makefile.in
 cmake_install.cmake
+/*.tar.gz
 /aclocal.m4
 /autom4te.cache/
 /config.*
@@ -28,7 +29,10 @@ cmake_install.cmake
 /groonga-normalizer-mysql.pc
 /test/grntest
 /test/groonga-command
+/test/tmp
+/packages/*.tar.gz
 /packages/apt/tmp/*
+/packages/ubuntu/tmp/
 /packages/yum/tmp/*
 /packages/rpm/*/*.spec
 /.gdb_history

  Modified: configure.ac (+23 -0)
===================================================================
--- configure.ac    2014-04-28 15:33:20 +0900 (2f6053e)
+++ configure.ac    2014-04-28 15:34:17 +0900 (fcb9bc8)
@@ -102,6 +102,28 @@ AC_ARG_WITH(rsync-path,
             [RSYNC_PATH="packages �� packages.groonga.org:public"])
 AC_SUBST(RSYNC_PATH)
 
+AC_ARG_WITH(launchpad-uploader-pgp-key,
+            [AS_HELP_STRING([--with-launchpad-uploader-pgp-key=KEY],
+            [specify PGP key UID to upload Groonga packages to Launchpad.])],
+            [LAUNCHPAD_UPLOADER_PGP_KEY="$withval"],
+            [LAUNCHPAD_UPLOADER_PGP_KEY=""])
+AC_SUBST(LAUNCHPAD_UPLOADER_PGP_KEY)
+
+AC_ARG_WITH([groonga-source-path],
+            AS_HELP_STRING([--with-groonga-source-path=PATH],
+                           [Specify Groonga source path for
+			    groonga-normalizer-mysql's release manager.]),
+			   [GROONGA_SOURCE_PATH="$withval"])
+case "$GROONGA_SOURCE_PATH" in
+  ""|/*)
+    : # do nothing
+    ;;
+  *)
+    GROONGA_SOURCE_PATH="\$(top_builddir)/${GROONGA_SOURCE_PATH}"
+    ;;
+esac
+AC_SUBST(GROONGA_SOURCE_PATH)
+
 AC_ARG_WITH([cutter-source-path],
             AS_HELP_STRING([--with-cutter-source-path=PATH],
                            [Specify Cutter source path for
@@ -128,6 +150,7 @@ AC_CONFIG_FILES([
   normalizers/Makefile
   packages/Makefile
   packages/apt/Makefile
+  packages/ubuntu/Makefile
   packages/rpm/Makefile
   packages/rpm/centos/Makefile
   packages/rpm/centos/groonga-normalizer-mysql.spec

  Modified: packages/Makefile.am (+1 -0)
===================================================================
--- packages/Makefile.am    2014-04-28 15:33:20 +0900 (19b9077)
+++ packages/Makefile.am    2014-04-28 15:34:17 +0900 (f6ab8e5)
@@ -1,5 +1,6 @@
 SUBDIRS =					\
 	apt					\
+	ubuntu					\
 	rpm					\
 	yum					\
 	source

  Added: packages/ubuntu/Makefile.am (+28 -0) 100644
===================================================================
--- /dev/null
+++ packages/ubuntu/Makefile.am    2014-04-28 15:34:17 +0900 (0c85cff)
@@ -0,0 +1,28 @@
+CODE_NAMES = precise,saucy,trusty
+SOURCE = ../$(PACKAGE)-$(VERSION).tar.gz
+
+all:
+
+ensure-configuration:
+	@if test -z "$(LAUNCHPAD_UPLOADER_PGP_KEY)"; then				\
+	  echo "--with-launchpad-uploader-pgp-key configure option must be specified.";	\
+	  false;									\
+	fi
+	@if test -z "$(GROONGA_SOURCE_PATH)"; then				 \
+	  echo "--with-groonga-source-path configure option must be specified."; \
+	  false;								 \
+	fi
+
+upload: source ensure-configuration
+	$(GROONGA_SOURCE_PATH)/packages/ubuntu/upload.rb	\
+	  --package '$(PACKAGE)'				\
+	  --version '$(VERSION)'				\
+	  --source-archive '$(SOURCE)'				\
+	  --code-names '$(CODE_NAMES)'				\
+	  --debian-directory '$(srcdir)/../debian/'		\
+	  --pgp-sign-key '$(LAUNCHPAD_UPLOADER_PGP_KEY)'
+
+source: $(SOURCE)
+
+$(SOURCE):
+	ln -s $(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz $(SOURCE)
-------------- next part --------------
HTML����������������������������...
Download 



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