From 81a630c66e23ef513a7cb585ea203bff11cc4167 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Wed, 3 Dec 2014 11:52:21 -0800 Subject: Update version number to v3.0.0-alpha-1 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 034d0cdb..418889dc 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ AC_PREREQ(2.59) # In the SVN trunk, the version should always be the next anticipated release # version with the "-pre" suffix. (We used to use "-SNAPSHOT" but this pushed # the size of one file name in the dist tarfile over the 99-char limit.) -AC_INIT([Protocol Buffers],[2.6.2-pre],[protobuf@googlegroups.com],[protobuf]) +AC_INIT([Protocol Buffers],[3.0.0-alpha-1],[protobuf@googlegroups.com],[protobuf]) AM_MAINTAINER_MODE([enable]) -- cgit v1.2.3 From 6936f17b886f18b572cf5966f64d4a814a151044 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Wed, 3 Dec 2014 17:37:42 -0800 Subject: Update post_process_dist.sh to produce a separate package for each language. --- configure.ac | 2 +- post_process_dist.sh | 27 +++++++++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 418889dc..60076bd1 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_CONFIG_MACRO_DIR([m4]) AC_ARG_VAR(DIST_LANG, [language to include in the distribution package (i.e., make dist)]) case "$DIST_LANG" in - "") DIST_LANG=cpp ;; + "") DIST_LANG=all ;; all | cpp | java | python | javanano) ;; *) AC_MSG_FAILURE([unknown language: $DIST_LANG]) ;; esac diff --git a/post_process_dist.sh b/post_process_dist.sh index 1a4d704e..733fa088 100755 --- a/post_process_dist.sh +++ b/post_process_dist.sh @@ -15,8 +15,8 @@ # non-testdata .txt files are converted to Windows-style line endings. # 5) Cleans up after itself. -if [ "$1" == "" -o "$2" == "" ]; then - echo "USAGE: $0 DISTFILE LANGUAGE" >&2 +if [ "$1" == "" ]; then + echo "USAGE: $0 DISTFILE" >&2 exit 1 fi @@ -27,8 +27,9 @@ fi set -ex +LANGUAGES="cpp java python" BASENAME=`basename $1 .tar.gz` -LANGUAGE=$2 +VERSION=${BASENAME:9} # Create a directory called "dist", copy the tarball there and unpack it. mkdir dist @@ -45,17 +46,23 @@ cd $BASENAME/vsprojects ./convert2008to2005.sh cd .. -# Build the dist again in .tar.gz and .tar.bz2 formats. -./configure DIST_LANG=$LANGUAGE -make dist-gzip -make dist-bzip2 +for LANG in $LANGUAGES; do + # Build the dist again in .tar.gz + ./configure DIST_LANG=$LANG + make dist-gzip + mv $BASENAME.tar.gz ../protobuf-$LANG-$VERSION.tar.gz +done # Convert all text files to use DOS-style line endings, then build a .zip # distribution. todos *.txt */*.txt -make dist-zip -# Clean up. -mv $BASENAME.tar.gz $BASENAME.tar.bz2 $BASENAME.zip .. +for LANG in $LANGUAGES; do + # Build the dist again in .zip + ./configure DIST_LANG=$LANG + make dist-zip + mv $BASENAME.zip ../protobuf-$LANG-$VERSION.zip +done + cd .. rm -rf $BASENAME -- cgit v1.2.3