Change log:95336cb92b..191d55580eFull diff:95336cb92b..191d55580eRoll chromium third_party 4e16929f46..3a8f2a9e1e Change log:4e16929f46..3a8f2a9e1eChanged dependencies: * src/tools:c44a3f5eca..f524a53b81DEPS diff:95336cb92b..191d55580e/DEPS No update to Clang. TBR=titovartem@google.com, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: Ic9c4a62b050383646e9fcf5cc07a5653c14ac06e Reviewed-on: https://webrtc-review.googlesource.com/76120 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23205}
65 lines
1.8 KiB
Bash
Executable File
65 lines
1.8 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
# This script takes the result of "make dist" and:
|
|
# 1) Unpacks it.
|
|
# 2) Ensures all contents are user-writable. Some version control systems
|
|
# keep code read-only until you explicitly ask to edit it, and the normal
|
|
# "make dist" process does not correct for this, so the result is that
|
|
# the entire dist is still marked read-only when unpacked, which is
|
|
# annoying. So, we fix it.
|
|
# 3) Convert MSVC project files to MSVC 2005, so that anyone who has version
|
|
# 2005 *or* 2008 can open them. (In version control, we keep things in
|
|
# MSVC 2008 format since that's what we use in development.)
|
|
# 4) Uses the result to create .tar.gz, .tar.bz2, and .zip versions and
|
|
# deposites them in the "dist" directory. In the .zip version, all
|
|
# non-testdata .txt files are converted to Windows-style line endings.
|
|
# 5) Cleans up after itself.
|
|
|
|
if [ "$1" == "" ]; then
|
|
echo "USAGE: $0 DISTFILE" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -e $1 ]; then
|
|
echo $1": File not found." >&2
|
|
exit 1
|
|
fi
|
|
|
|
set -ex
|
|
|
|
LANGUAGES="cpp csharp java javanano js objectivec python ruby php"
|
|
BASENAME=`basename $1 .tar.gz`
|
|
VERSION=${BASENAME:9}
|
|
|
|
# Create a directory called "dist", copy the tarball there and unpack it.
|
|
mkdir dist
|
|
cp $1 dist
|
|
cd dist
|
|
tar zxvf $BASENAME.tar.gz
|
|
rm $BASENAME.tar.gz
|
|
|
|
# Set the entire contents to be user-writable.
|
|
chmod -R u+w $BASENAME
|
|
cd $BASENAME
|
|
|
|
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
|
|
|
|
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
|