[Groonga-commit] groonga/groonga [master] add update-latest-release target.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 11月 24日 (水) 11:59:28 JST


Kouhei Sutou	2010-11-24 02:59:28 +0000 (Wed, 24 Nov 2010)

  New Revision: 85a9e421fb7652c660c9980b0638654340e38bfd

  Log:
    add update-latest-release target.

  Modified files:
    .gitignore
    Makefile.am

  Modified: .gitignore (+1 -0)
===================================================================
--- .gitignore    2010-11-24 02:53:17 +0000 (49ce872)
+++ .gitignore    2010-11-24 02:59:28 +0000 (68b99b6)
@@ -78,3 +78,4 @@ version.sh
 /examples/dictionary/db/
 /examples/dictionary/*.gz
 /examples/dictionary/gene95-dictionary/
+/misc/

  Modified: Makefile.am (+23 -0)
===================================================================
--- Makefile.am    2010-11-24 02:53:17 +0000 (077a330)
+++ Makefile.am    2010-11-24 02:59:28 +0000 (b6ef16b)
@@ -37,3 +37,26 @@ update-changelog:
 
 tag:
 	cd $(top_srcdir) && git tag v$(VERSION) -a -m 'groonga $(VERSION)!!!'
+
+update-latest-release:
+	@if test -z "$(OLD_RELEASE)"; then	\
+	  echo "\$$(OLD_RELEASE) is missing";	\
+	  exit 1;				\
+	fi
+	@if test -z "$(OLD_RELEASE_DATE)"; then		\
+	  echo "\$$(OLD_RELEASE_DATE) is missing";	\
+	  exit 1;					\
+	fi
+	@if test -z "$(NEW_RELEASE_DATE)"; then		\
+	  echo "\$$(NEW_RELEASE_DATE) is missing";	\
+	  exit 1;					\
+	fi
+	cd $(top_srcdir) && test -d "misc" || \
+	  svn export --force https://cutter.svn.sourceforge.net/svnroot/cutter/cutter/trunk/misc
+	cd $(top_srcdir) &&					\
+	  misc/update-latest-release.rb				\
+	  $(PACKAGE) $(OLD_RELEASE) $(OLD_RELEASE_DATE)		\
+	  $(VERSION) $(NEW_RELEASE_DATE)			\
+	  rpm/fedora/groonga.spec.in				\
+	  rpm/centos/groonga.spec.in				\
+	  debian/changelog




Groonga-commit メーリングリストの案内
Back to archive index