代码拉取完成,页面将自动刷新
同步操作将从 望日蓮/protobuf 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /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 js objectivec python ruby php all"
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。