aboutsummaryrefslogtreecommitdiff
path: root/post_process_dist.sh
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2014-12-03 15:45:28 -0800
committerFeng Xiao <xfxyjwf@gmail.com>2014-12-03 15:45:28 -0800
commit35ef68056cf84f581c2eab389f78a876f13cd661 (patch)
tree62f7570390963a8ea566651986593e56880a704f /post_process_dist.sh
parent58dfce93847ece9ae05e70091f982b8882fd3c16 (diff)
downloadprotobuf-35ef68056cf84f581c2eab389f78a876f13cd661.tar.gz
protobuf-35ef68056cf84f581c2eab389f78a876f13cd661.tar.bz2
protobuf-35ef68056cf84f581c2eab389f78a876f13cd661.zip
Add a missing Java dist file.
Diffstat (limited to 'post_process_dist.sh')
-rwxr-xr-xpost_process_dist.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/post_process_dist.sh b/post_process_dist.sh
index 7b2e599d..1a4d704e 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" == "" ]; then
- echo "USAGE: $1 DISTFILE" >&2
+if [ "$1" == "" -o "$2" == "" ]; then
+ echo "USAGE: $0 DISTFILE LANGUAGE" >&2
exit 1
fi
@@ -28,6 +28,7 @@ fi
set -ex
BASENAME=`basename $1 .tar.gz`
+LANGUAGE=$2
# Create a directory called "dist", copy the tarball there and unpack it.
mkdir dist
@@ -45,7 +46,7 @@ cd $BASENAME/vsprojects
cd ..
# Build the dist again in .tar.gz and .tar.bz2 formats.
-./configure
+./configure DIST_LANG=$LANGUAGE
make dist-gzip
make dist-bzip2