[Groonga-commit] groonga/groonga-normalizer-mysql [master] packages: support source archive upload/download

アーカイブの一覧に戻る

HAYASHI Kentaro null+****@clear*****
Tue Jan 29 12:57:46 JST 2013


HAYASHI Kentaro	2013-01-29 12:57:46 +0900 (Tue, 29 Jan 2013)

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

  Log:
    packages: support source archive upload/download

  Added files:
    packages/Makefile.am
    packages/source/Makefile.am
  Modified files:
    Makefile.am
    configure.ac

  Modified: Makefile.am (+1 -0)
===================================================================
--- Makefile.am    2013-01-29 11:32:39 +0900 (81f8a28)
+++ Makefile.am    2013-01-29 12:57:46 +0900 (aa0b78e)
@@ -18,6 +18,7 @@ ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS =					\
 	normalizers				\
+	packages				\
 	test
 
 echo-groonga:

  Modified: configure.ac (+15 -0)
===================================================================
--- configure.ac    2013-01-29 11:32:39 +0900 (ee501a5)
+++ configure.ac    2013-01-29 12:57:46 +0900 (e58e37e)
@@ -92,10 +92,25 @@ fi
 AC_SUBST(RUBY)
 AM_CONDITIONAL([WITH_TEST], [test "$ac_cv_ruby_available" = "yes"])
 
+# For package
+AC_ARG_WITH(rsync-path,
+            [AS_HELP_STRING([--with-rsync-path=PATH],
+            [specify rsync path to upload groonga packages.])],
+            [RSYNC_PATH="$withval"],
+            [RSYNC_PATH="packages �� packages.groonga.org:public"])
+AC_SUBST(RSYNC_PATH)
+
 AC_CONFIG_FILES([
   Makefile
   groonga-normalizer-mysql.pc
   normalizers/Makefile
+  packages/Makefile
+  packages/apt/Makefile
+  packages/rpm/Makefile
+  packages/rpm/centos/Makefile
+  packages/rpm/fedora/Makefile
+  packages/yum/Makefile
+  packages/source/Makefile
   test/Makefile
 ])
 

  Added: packages/Makefile.am (+5 -0) 100644
===================================================================
--- /dev/null
+++ packages/Makefile.am    2013-01-29 12:57:46 +0900 (19b9077)
@@ -0,0 +1,5 @@
+SUBDIRS =					\
+	apt					\
+	rpm					\
+	yum					\
+	source

  Added: packages/source/Makefile.am (+25 -0) 100644
===================================================================
--- /dev/null
+++ packages/source/Makefile.am    2013-01-29 12:57:46 +0900 (29051e8)
@@ -0,0 +1,25 @@
+all:
+
+release: upload
+
+ensure-rsync-path:
+	@if test -z "$(RSYNC_PATH)"; then				\
+	  echo "--with-rsync-path configure option must be specified.";	\
+	  false;							\
+	fi
+
+download: ensure-rsync-path
+	rsync -avz --progress $(RSYNC_PATH)/source/groonga-normalizer-mysql/ files
+
+upload: ensure-rsync-path files/$(PACKAGE)-$(VERSION).tar.gz files/$(PACKAGE)-$(VERSION).zip
+	rsync -avz --progress --delete files/ $(RSYNC_PATH)/source/groonga-normalizer-mysql
+
+files/$(PACKAGE)-$(VERSION).tar.gz: $(top_builddir)/$(PACKAGE)-$(VERSION).tar.gz
+	mkdir -p files
+	cp -p $< $@
+
+files/$(PACKAGE)-$(VERSION).zip: files/$(PACKAGE)-$(VERSION).tar.gz
+	rm -rf $(PACKAGE)-$(VERSION)
+	tar xvzf files/$(PACKAGE)-$(VERSION).tar.gz
+	zip -r $@ $(PACKAGE)-$(VERSION)
+	rm -rf $(PACKAGE)-$(VERSION)
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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