mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2024-11-21 19:31:14 +00:00
This commit is contained in:
commit
a2e9dbd663
23 changed files with 32094 additions and 32086 deletions
8
.gitattributes
vendored
8
.gitattributes
vendored
|
@ -1,3 +1,11 @@
|
|||
creategameprojects text
|
||||
createallprojects text
|
||||
vpc text
|
||||
*.sh text
|
||||
|
||||
vpc_linux binary
|
||||
vpc_osx binary
|
||||
|
||||
*.exe binary
|
||||
protoc binary
|
||||
ccache binary
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +everything /mksln everything
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +everything /mksln everything
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +game /mksln games
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +game /mksln games
|
||||
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
OS=`uname`
|
||||
SCRIPTPATH=`dirname $0`
|
||||
FORCEARG=""
|
||||
|
||||
case $OS in
|
||||
"Darwin")
|
||||
BINNAME=vpc_osx
|
||||
;;
|
||||
"Linux")
|
||||
BINNAME=vpc_linux
|
||||
;;
|
||||
*)
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ $OS == "Darwin" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
elif [ $OS == "Linux" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
else
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
fi
|
||||
#!/bin/bash
|
||||
|
||||
OS=`uname`
|
||||
SCRIPTPATH=`dirname $0`
|
||||
FORCEARG=""
|
||||
|
||||
case $OS in
|
||||
"Darwin")
|
||||
BINNAME=vpc_osx
|
||||
;;
|
||||
"Linux")
|
||||
BINNAME=vpc_linux
|
||||
;;
|
||||
*)
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ $OS == "Darwin" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
elif [ $OS == "Linux" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
else
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
fi
|
||||
|
|
82
mp/src/thirdparty/protobuf-2.3.0/autogen.sh
vendored
82
mp/src/thirdparty/protobuf-2.3.0/autogen.sh
vendored
|
@ -1,41 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run this script to generate the configure script and other files that will
|
||||
# be included in the distribution. These files are not checked in because they
|
||||
# are automatically generated.
|
||||
|
||||
set -e
|
||||
|
||||
# Check that we're being run from the right directory.
|
||||
if test ! -f src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that gtest is present. Usually it is already there since the
|
||||
# directory is set up as an SVN external.
|
||||
if test ! -e gtest; then
|
||||
echo "Google Test not present. Fetching gtest-1.3.0 from the web..."
|
||||
curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx
|
||||
mv gtest-1.3.0 gtest
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
|
||||
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
|
||||
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
|
||||
# probably change their default to match, then this will be unnecessary.
|
||||
# One of these mappings converts the debug configuration and the other
|
||||
# converts the release configuration. I don't know which is which.
|
||||
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
|
||||
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
|
||||
|
||||
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
|
||||
autoreconf -f -i -Wall,no-obsolete
|
||||
|
||||
rm -rf autom4te.cache config.h.in~
|
||||
exit 0
|
||||
#!/bin/sh
|
||||
|
||||
# Run this script to generate the configure script and other files that will
|
||||
# be included in the distribution. These files are not checked in because they
|
||||
# are automatically generated.
|
||||
|
||||
set -e
|
||||
|
||||
# Check that we're being run from the right directory.
|
||||
if test ! -f src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that gtest is present. Usually it is already there since the
|
||||
# directory is set up as an SVN external.
|
||||
if test ! -e gtest; then
|
||||
echo "Google Test not present. Fetching gtest-1.3.0 from the web..."
|
||||
curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx
|
||||
mv gtest-1.3.0 gtest
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
|
||||
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
|
||||
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
|
||||
# probably change their default to match, then this will be unnecessary.
|
||||
# One of these mappings converts the debug configuration and the other
|
||||
# converts the release configuration. I don't know which is which.
|
||||
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
|
||||
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
|
||||
|
||||
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
|
||||
autoreconf -f -i -Wall,no-obsolete
|
||||
|
||||
rm -rf autom4te.cache config.h.in~
|
||||
exit 0
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run this script to regenerate descriptor.pb.{h,cc} after the protocol
|
||||
# compiler changes. Since these files are compiled into the protocol compiler
|
||||
# itself, they cannot be generated automatically by a make rule. "make check"
|
||||
# will fail if these files do not match what the protocol compiler would
|
||||
# generate.
|
||||
#
|
||||
# HINT: Flags passed to generate_descriptor_proto.sh will be passed directly
|
||||
# to make when building protoc. This is particularly useful for passing
|
||||
# -j4 to run 4 jobs simultaneously.
|
||||
|
||||
if test ! -e src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -e src/Makefile; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find src/Makefile. You must run ./configure (and perhaps
|
||||
./autogen.sh) first.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd src
|
||||
make $@ protoc &&
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto && \
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOC_EXPORT:. google/protobuf/compiler/plugin.proto
|
||||
cd ..
|
||||
#!/bin/sh
|
||||
|
||||
# Run this script to regenerate descriptor.pb.{h,cc} after the protocol
|
||||
# compiler changes. Since these files are compiled into the protocol compiler
|
||||
# itself, they cannot be generated automatically by a make rule. "make check"
|
||||
# will fail if these files do not match what the protocol compiler would
|
||||
# generate.
|
||||
#
|
||||
# HINT: Flags passed to generate_descriptor_proto.sh will be passed directly
|
||||
# to make when building protoc. This is particularly useful for passing
|
||||
# -j4 to run 4 jobs simultaneously.
|
||||
|
||||
if test ! -e src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -e src/Makefile; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find src/Makefile. You must run ./configure (and perhaps
|
||||
./autogen.sh) first.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd src
|
||||
make $@ protoc &&
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto && \
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOC_EXPORT:. google/protobuf/compiler/plugin.proto
|
||||
cd ..
|
||||
|
|
15748
mp/src/thirdparty/protobuf-2.3.0/gtest/build-aux/ltmain.sh
vendored
15748
mp/src/thirdparty/protobuf-2.3.0/gtest/build-aux/ltmain.sh
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,36 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Executes the samples and tests for the Google Test Framework.
|
||||
|
||||
# Help the dynamic linker find the path to the libraries.
|
||||
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
|
||||
export DYLD_LIBRARY_PATH=$BUILT_PRODUCTS_DIR
|
||||
|
||||
# Create some executables.
|
||||
test_executables=("$BUILT_PRODUCTS_DIR/gtest_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/gtest_unittest"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-static")
|
||||
|
||||
# Now execute each one in turn keeping track of how many succeeded and failed.
|
||||
succeeded=0
|
||||
failed=0
|
||||
failed_list=()
|
||||
for test in ${test_executables[*]}; do
|
||||
"$test"
|
||||
result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
succeeded=$(( $succeeded + 1 ))
|
||||
else
|
||||
failed=$(( failed + 1 ))
|
||||
failed_list="$failed_list $test"
|
||||
fi
|
||||
done
|
||||
|
||||
# Report the successes and failures to the console.
|
||||
echo "Tests complete with $succeeded successes and $failed failures."
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "The following tests failed:"
|
||||
echo $failed_list
|
||||
fi
|
||||
exit $failed
|
||||
#!/bin/bash
|
||||
|
||||
# Executes the samples and tests for the Google Test Framework.
|
||||
|
||||
# Help the dynamic linker find the path to the libraries.
|
||||
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
|
||||
export DYLD_LIBRARY_PATH=$BUILT_PRODUCTS_DIR
|
||||
|
||||
# Create some executables.
|
||||
test_executables=("$BUILT_PRODUCTS_DIR/gtest_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/gtest_unittest"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-static")
|
||||
|
||||
# Now execute each one in turn keeping track of how many succeeded and failed.
|
||||
succeeded=0
|
||||
failed=0
|
||||
failed_list=()
|
||||
for test in ${test_executables[*]}; do
|
||||
"$test"
|
||||
result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
succeeded=$(( $succeeded + 1 ))
|
||||
else
|
||||
failed=$(( failed + 1 ))
|
||||
failed_list="$failed_list $test"
|
||||
fi
|
||||
done
|
||||
|
||||
# Report the successes and failures to the console.
|
||||
echo "Tests complete with $succeeded successes and $failed failures."
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "The following tests failed:"
|
||||
echo $failed_list
|
||||
fi
|
||||
exit $failed
|
||||
|
|
15748
mp/src/thirdparty/protobuf-2.3.0/ltmain.sh
vendored
15748
mp/src/thirdparty/protobuf-2.3.0/ltmain.sh
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,85 +1,85 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Author: kenton@google.com (Kenton Varda)
|
||||
#
|
||||
# Test protoc's zip output mode.
|
||||
|
||||
fail() {
|
||||
echo "$@" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo '
|
||||
option java_multiple_files = true;
|
||||
option java_package = "test.jar";
|
||||
option java_outer_classname = "Outer";
|
||||
message Foo {}
|
||||
message Bar {}
|
||||
' > testzip.proto
|
||||
|
||||
./protoc --cpp_out=testzip.zip --python_out=testzip.zip --java_out=testzip.jar \
|
||||
testzip.proto || fail 'protoc failed.'
|
||||
|
||||
echo "Testing output to zip..."
|
||||
if unzip -h > /dev/null; then
|
||||
unzip -t testzip.zip > testzip.list || fail 'unzip failed.'
|
||||
|
||||
grep 'testing: testzip\.pb\.cc *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.cc not found in output zip.'
|
||||
grep 'testing: testzip\.pb\.h *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.h not found in output zip.'
|
||||
grep 'testing: testzip_pb2\.py *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip_pb2.py not found in output zip.'
|
||||
grep -i 'manifest' testzip.list > /dev/null \
|
||||
&& fail 'Zip file contained manifest.'
|
||||
else
|
||||
echo "Warning: 'unzip' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo "Testing output to jar..."
|
||||
if jar c testzip.proto > /dev/null; then
|
||||
jar tf testzip.jar > testzip.list || fail 'jar failed.'
|
||||
|
||||
grep '^test/jar/Foo\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Foo.java not found in output jar.'
|
||||
grep '^test/jar/Bar\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Bar.java not found in output jar.'
|
||||
grep '^test/jar/Outer\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Outer.java not found in output jar.'
|
||||
grep '^META-INF/MANIFEST\.MF$' testzip.list > /dev/null \
|
||||
|| fail 'Manifest not ofund in output jar.'
|
||||
else
|
||||
echo "Warning: 'jar' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo PASS
|
||||
#!/bin/sh
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Author: kenton@google.com (Kenton Varda)
|
||||
#
|
||||
# Test protoc's zip output mode.
|
||||
|
||||
fail() {
|
||||
echo "$@" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo '
|
||||
option java_multiple_files = true;
|
||||
option java_package = "test.jar";
|
||||
option java_outer_classname = "Outer";
|
||||
message Foo {}
|
||||
message Bar {}
|
||||
' > testzip.proto
|
||||
|
||||
./protoc --cpp_out=testzip.zip --python_out=testzip.zip --java_out=testzip.jar \
|
||||
testzip.proto || fail 'protoc failed.'
|
||||
|
||||
echo "Testing output to zip..."
|
||||
if unzip -h > /dev/null; then
|
||||
unzip -t testzip.zip > testzip.list || fail 'unzip failed.'
|
||||
|
||||
grep 'testing: testzip\.pb\.cc *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.cc not found in output zip.'
|
||||
grep 'testing: testzip\.pb\.h *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.h not found in output zip.'
|
||||
grep 'testing: testzip_pb2\.py *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip_pb2.py not found in output zip.'
|
||||
grep -i 'manifest' testzip.list > /dev/null \
|
||||
&& fail 'Zip file contained manifest.'
|
||||
else
|
||||
echo "Warning: 'unzip' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo "Testing output to jar..."
|
||||
if jar c testzip.proto > /dev/null; then
|
||||
jar tf testzip.jar > testzip.list || fail 'jar failed.'
|
||||
|
||||
grep '^test/jar/Foo\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Foo.java not found in output jar.'
|
||||
grep '^test/jar/Bar\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Bar.java not found in output jar.'
|
||||
grep '^test/jar/Outer\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Outer.java not found in output jar.'
|
||||
grep '^META-INF/MANIFEST\.MF$' testzip.list > /dev/null \
|
||||
|| fail 'Manifest not ofund in output jar.'
|
||||
else
|
||||
echo "Warning: 'jar' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo PASS
|
||||
|
|
|
@ -1,44 +1,44 @@
|
|||
#!/bin/sh -x
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# Author: brianolson@google.com (Brian Olson)
|
||||
#
|
||||
# Test compatibility between command line gzip/gunzip binaries and
|
||||
# ZeroCopyStream versions.
|
||||
|
||||
TESTFILE=Makefile
|
||||
|
||||
(./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
|
||||
(gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
|
||||
|
||||
# Result of "(cmd) && (cmd)" implicitly becomes result of this script
|
||||
# and thus the test.
|
||||
#!/bin/sh -x
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# Author: brianolson@google.com (Brian Olson)
|
||||
#
|
||||
# Test compatibility between command line gzip/gunzip binaries and
|
||||
# ZeroCopyStream versions.
|
||||
|
||||
TESTFILE=Makefile
|
||||
|
||||
(./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
|
||||
(gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
|
||||
|
||||
# Result of "(cmd) && (cmd)" implicitly becomes result of this script
|
||||
# and thus the test.
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
# This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing
|
||||
# people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to
|
||||
# open projects created with 2008. We run this as part of our release process.
|
||||
# If you obtained the code direct from version control and you want to use
|
||||
# MSVC 2005, you may have to run this manually. (Hint: Use Cygwin or MSYS.)
|
||||
|
||||
for file in *.sln; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
|
||||
s/Visual Studio 2008/Visual Studio 2005/g;' $file
|
||||
done
|
||||
|
||||
for file in *.vcproj; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
||||
done
|
||||
|
||||
# Yes, really, that's it.
|
||||
#! /bin/sh -e
|
||||
|
||||
# This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing
|
||||
# people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to
|
||||
# open projects created with 2008. We run this as part of our release process.
|
||||
# If you obtained the code direct from version control and you want to use
|
||||
# MSVC 2005, you may have to run this manually. (Hint: Use Cygwin or MSYS.)
|
||||
|
||||
for file in *.sln; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
|
||||
s/Visual Studio 2008/Visual Studio 2005/g;' $file
|
||||
done
|
||||
|
||||
for file in *.vcproj; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
||||
done
|
||||
|
||||
# Yes, really, that's it.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +everything /mksln everything
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +everything /mksln everything
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +game /mksln games
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
devtools/bin/vpc /hl2 /episodic +game /mksln games
|
||||
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
OS=`uname`
|
||||
SCRIPTPATH=`dirname $0`
|
||||
FORCEARG=""
|
||||
|
||||
case $OS in
|
||||
"Darwin")
|
||||
BINNAME=vpc_osx
|
||||
;;
|
||||
"Linux")
|
||||
BINNAME=vpc_linux
|
||||
;;
|
||||
*)
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ $OS == "Darwin" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
elif [ $OS == "Linux" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
else
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
fi
|
||||
#!/bin/bash
|
||||
|
||||
OS=`uname`
|
||||
SCRIPTPATH=`dirname $0`
|
||||
FORCEARG=""
|
||||
|
||||
case $OS in
|
||||
"Darwin")
|
||||
BINNAME=vpc_osx
|
||||
;;
|
||||
"Linux")
|
||||
BINNAME=vpc_linux
|
||||
;;
|
||||
*)
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ $OS == "Darwin" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
elif [ $OS == "Linux" ]; then
|
||||
$SCRIPTPATH/$BINNAME $@
|
||||
else
|
||||
echo "Couldn't find appropriate VPC binary, fix the script."
|
||||
exit -1
|
||||
fi
|
||||
|
|
82
sp/src/thirdparty/protobuf-2.3.0/autogen.sh
vendored
82
sp/src/thirdparty/protobuf-2.3.0/autogen.sh
vendored
|
@ -1,41 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run this script to generate the configure script and other files that will
|
||||
# be included in the distribution. These files are not checked in because they
|
||||
# are automatically generated.
|
||||
|
||||
set -e
|
||||
|
||||
# Check that we're being run from the right directory.
|
||||
if test ! -f src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that gtest is present. Usually it is already there since the
|
||||
# directory is set up as an SVN external.
|
||||
if test ! -e gtest; then
|
||||
echo "Google Test not present. Fetching gtest-1.3.0 from the web..."
|
||||
curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx
|
||||
mv gtest-1.3.0 gtest
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
|
||||
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
|
||||
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
|
||||
# probably change their default to match, then this will be unnecessary.
|
||||
# One of these mappings converts the debug configuration and the other
|
||||
# converts the release configuration. I don't know which is which.
|
||||
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
|
||||
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
|
||||
|
||||
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
|
||||
autoreconf -f -i -Wall,no-obsolete
|
||||
|
||||
rm -rf autom4te.cache config.h.in~
|
||||
exit 0
|
||||
#!/bin/sh
|
||||
|
||||
# Run this script to generate the configure script and other files that will
|
||||
# be included in the distribution. These files are not checked in because they
|
||||
# are automatically generated.
|
||||
|
||||
set -e
|
||||
|
||||
# Check that we're being run from the right directory.
|
||||
if test ! -f src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check that gtest is present. Usually it is already there since the
|
||||
# directory is set up as an SVN external.
|
||||
if test ! -e gtest; then
|
||||
echo "Google Test not present. Fetching gtest-1.3.0 from the web..."
|
||||
curl http://googletest.googlecode.com/files/gtest-1.3.0.tar.bz2 | tar jx
|
||||
mv gtest-1.3.0 gtest
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
# Temporary hack: Must change C runtime library to "multi-threaded DLL",
|
||||
# otherwise it will be set to "multi-threaded static" when MSVC upgrades
|
||||
# the project file to MSVC 2005/2008. vladl of Google Test says gtest will
|
||||
# probably change their default to match, then this will be unnecessary.
|
||||
# One of these mappings converts the debug configuration and the other
|
||||
# converts the release configuration. I don't know which is which.
|
||||
sed -i -e 's/RuntimeLibrary="5"/RuntimeLibrary="3"/g;
|
||||
s/RuntimeLibrary="4"/RuntimeLibrary="2"/g;' gtest/msvc/*.vcproj
|
||||
|
||||
# TODO(kenton): Remove the ",no-obsolete" part and fix the resulting warnings.
|
||||
autoreconf -f -i -Wall,no-obsolete
|
||||
|
||||
rm -rf autom4te.cache config.h.in~
|
||||
exit 0
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Run this script to regenerate descriptor.pb.{h,cc} after the protocol
|
||||
# compiler changes. Since these files are compiled into the protocol compiler
|
||||
# itself, they cannot be generated automatically by a make rule. "make check"
|
||||
# will fail if these files do not match what the protocol compiler would
|
||||
# generate.
|
||||
#
|
||||
# HINT: Flags passed to generate_descriptor_proto.sh will be passed directly
|
||||
# to make when building protoc. This is particularly useful for passing
|
||||
# -j4 to run 4 jobs simultaneously.
|
||||
|
||||
if test ! -e src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -e src/Makefile; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find src/Makefile. You must run ./configure (and perhaps
|
||||
./autogen.sh) first.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd src
|
||||
make $@ protoc &&
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto && \
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOC_EXPORT:. google/protobuf/compiler/plugin.proto
|
||||
cd ..
|
||||
#!/bin/sh
|
||||
|
||||
# Run this script to regenerate descriptor.pb.{h,cc} after the protocol
|
||||
# compiler changes. Since these files are compiled into the protocol compiler
|
||||
# itself, they cannot be generated automatically by a make rule. "make check"
|
||||
# will fail if these files do not match what the protocol compiler would
|
||||
# generate.
|
||||
#
|
||||
# HINT: Flags passed to generate_descriptor_proto.sh will be passed directly
|
||||
# to make when building protoc. This is particularly useful for passing
|
||||
# -j4 to run 4 jobs simultaneously.
|
||||
|
||||
if test ! -e src/google/protobuf/stubs/common.h; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find source code. Make sure you are running this script from the
|
||||
root of the distribution tree.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test ! -e src/Makefile; then
|
||||
cat >&2 << __EOF__
|
||||
Could not find src/Makefile. You must run ./configure (and perhaps
|
||||
./autogen.sh) first.
|
||||
__EOF__
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd src
|
||||
make $@ protoc &&
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOBUF_EXPORT:. google/protobuf/descriptor.proto && \
|
||||
./protoc --cpp_out=dllexport_decl=LIBPROTOC_EXPORT:. google/protobuf/compiler/plugin.proto
|
||||
cd ..
|
||||
|
|
15748
sp/src/thirdparty/protobuf-2.3.0/gtest/build-aux/ltmain.sh
vendored
15748
sp/src/thirdparty/protobuf-2.3.0/gtest/build-aux/ltmain.sh
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,36 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Executes the samples and tests for the Google Test Framework.
|
||||
|
||||
# Help the dynamic linker find the path to the libraries.
|
||||
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
|
||||
export DYLD_LIBRARY_PATH=$BUILT_PRODUCTS_DIR
|
||||
|
||||
# Create some executables.
|
||||
test_executables=("$BUILT_PRODUCTS_DIR/gtest_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/gtest_unittest"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-static")
|
||||
|
||||
# Now execute each one in turn keeping track of how many succeeded and failed.
|
||||
succeeded=0
|
||||
failed=0
|
||||
failed_list=()
|
||||
for test in ${test_executables[*]}; do
|
||||
"$test"
|
||||
result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
succeeded=$(( $succeeded + 1 ))
|
||||
else
|
||||
failed=$(( failed + 1 ))
|
||||
failed_list="$failed_list $test"
|
||||
fi
|
||||
done
|
||||
|
||||
# Report the successes and failures to the console.
|
||||
echo "Tests complete with $succeeded successes and $failed failures."
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "The following tests failed:"
|
||||
echo $failed_list
|
||||
fi
|
||||
exit $failed
|
||||
#!/bin/bash
|
||||
|
||||
# Executes the samples and tests for the Google Test Framework.
|
||||
|
||||
# Help the dynamic linker find the path to the libraries.
|
||||
export DYLD_FRAMEWORK_PATH=$BUILT_PRODUCTS_DIR
|
||||
export DYLD_LIBRARY_PATH=$BUILT_PRODUCTS_DIR
|
||||
|
||||
# Create some executables.
|
||||
test_executables=("$BUILT_PRODUCTS_DIR/gtest_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/gtest_unittest"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-framework"
|
||||
"$BUILT_PRODUCTS_DIR/sample1_unittest-static")
|
||||
|
||||
# Now execute each one in turn keeping track of how many succeeded and failed.
|
||||
succeeded=0
|
||||
failed=0
|
||||
failed_list=()
|
||||
for test in ${test_executables[*]}; do
|
||||
"$test"
|
||||
result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
succeeded=$(( $succeeded + 1 ))
|
||||
else
|
||||
failed=$(( failed + 1 ))
|
||||
failed_list="$failed_list $test"
|
||||
fi
|
||||
done
|
||||
|
||||
# Report the successes and failures to the console.
|
||||
echo "Tests complete with $succeeded successes and $failed failures."
|
||||
if [ $failed -ne 0 ]; then
|
||||
echo "The following tests failed:"
|
||||
echo $failed_list
|
||||
fi
|
||||
exit $failed
|
||||
|
|
15748
sp/src/thirdparty/protobuf-2.3.0/ltmain.sh
vendored
15748
sp/src/thirdparty/protobuf-2.3.0/ltmain.sh
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,85 +1,85 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Author: kenton@google.com (Kenton Varda)
|
||||
#
|
||||
# Test protoc's zip output mode.
|
||||
|
||||
fail() {
|
||||
echo "$@" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo '
|
||||
option java_multiple_files = true;
|
||||
option java_package = "test.jar";
|
||||
option java_outer_classname = "Outer";
|
||||
message Foo {}
|
||||
message Bar {}
|
||||
' > testzip.proto
|
||||
|
||||
./protoc --cpp_out=testzip.zip --python_out=testzip.zip --java_out=testzip.jar \
|
||||
testzip.proto || fail 'protoc failed.'
|
||||
|
||||
echo "Testing output to zip..."
|
||||
if unzip -h > /dev/null; then
|
||||
unzip -t testzip.zip > testzip.list || fail 'unzip failed.'
|
||||
|
||||
grep 'testing: testzip\.pb\.cc *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.cc not found in output zip.'
|
||||
grep 'testing: testzip\.pb\.h *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.h not found in output zip.'
|
||||
grep 'testing: testzip_pb2\.py *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip_pb2.py not found in output zip.'
|
||||
grep -i 'manifest' testzip.list > /dev/null \
|
||||
&& fail 'Zip file contained manifest.'
|
||||
else
|
||||
echo "Warning: 'unzip' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo "Testing output to jar..."
|
||||
if jar c testzip.proto > /dev/null; then
|
||||
jar tf testzip.jar > testzip.list || fail 'jar failed.'
|
||||
|
||||
grep '^test/jar/Foo\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Foo.java not found in output jar.'
|
||||
grep '^test/jar/Bar\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Bar.java not found in output jar.'
|
||||
grep '^test/jar/Outer\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Outer.java not found in output jar.'
|
||||
grep '^META-INF/MANIFEST\.MF$' testzip.list > /dev/null \
|
||||
|| fail 'Manifest not ofund in output jar.'
|
||||
else
|
||||
echo "Warning: 'jar' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo PASS
|
||||
#!/bin/sh
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Author: kenton@google.com (Kenton Varda)
|
||||
#
|
||||
# Test protoc's zip output mode.
|
||||
|
||||
fail() {
|
||||
echo "$@" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo '
|
||||
option java_multiple_files = true;
|
||||
option java_package = "test.jar";
|
||||
option java_outer_classname = "Outer";
|
||||
message Foo {}
|
||||
message Bar {}
|
||||
' > testzip.proto
|
||||
|
||||
./protoc --cpp_out=testzip.zip --python_out=testzip.zip --java_out=testzip.jar \
|
||||
testzip.proto || fail 'protoc failed.'
|
||||
|
||||
echo "Testing output to zip..."
|
||||
if unzip -h > /dev/null; then
|
||||
unzip -t testzip.zip > testzip.list || fail 'unzip failed.'
|
||||
|
||||
grep 'testing: testzip\.pb\.cc *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.cc not found in output zip.'
|
||||
grep 'testing: testzip\.pb\.h *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip.pb.h not found in output zip.'
|
||||
grep 'testing: testzip_pb2\.py *OK$' testzip.list > /dev/null \
|
||||
|| fail 'testzip_pb2.py not found in output zip.'
|
||||
grep -i 'manifest' testzip.list > /dev/null \
|
||||
&& fail 'Zip file contained manifest.'
|
||||
else
|
||||
echo "Warning: 'unzip' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo "Testing output to jar..."
|
||||
if jar c testzip.proto > /dev/null; then
|
||||
jar tf testzip.jar > testzip.list || fail 'jar failed.'
|
||||
|
||||
grep '^test/jar/Foo\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Foo.java not found in output jar.'
|
||||
grep '^test/jar/Bar\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Bar.java not found in output jar.'
|
||||
grep '^test/jar/Outer\.java$' testzip.list > /dev/null \
|
||||
|| fail 'Outer.java not found in output jar.'
|
||||
grep '^META-INF/MANIFEST\.MF$' testzip.list > /dev/null \
|
||||
|| fail 'Manifest not ofund in output jar.'
|
||||
else
|
||||
echo "Warning: 'jar' command not available. Skipping test."
|
||||
fi
|
||||
|
||||
echo PASS
|
||||
|
|
|
@ -1,44 +1,44 @@
|
|||
#!/bin/sh -x
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# Author: brianolson@google.com (Brian Olson)
|
||||
#
|
||||
# Test compatibility between command line gzip/gunzip binaries and
|
||||
# ZeroCopyStream versions.
|
||||
|
||||
TESTFILE=Makefile
|
||||
|
||||
(./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
|
||||
(gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
|
||||
|
||||
# Result of "(cmd) && (cmd)" implicitly becomes result of this script
|
||||
# and thus the test.
|
||||
#!/bin/sh -x
|
||||
#
|
||||
# Protocol Buffers - Google's data interchange format
|
||||
# Copyright 2009 Google Inc. All rights reserved.
|
||||
# http://code.google.com/p/protobuf/
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following disclaimer
|
||||
# in the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# * Neither the name of Google Inc. nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# Author: brianolson@google.com (Brian Olson)
|
||||
#
|
||||
# Test compatibility between command line gzip/gunzip binaries and
|
||||
# ZeroCopyStream versions.
|
||||
|
||||
TESTFILE=Makefile
|
||||
|
||||
(./zcgzip < ${TESTFILE} | gunzip | cmp - ${TESTFILE}) && \
|
||||
(gzip < ${TESTFILE} | ./zcgunzip | cmp - ${TESTFILE})
|
||||
|
||||
# Result of "(cmd) && (cmd)" implicitly becomes result of this script
|
||||
# and thus the test.
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
# This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing
|
||||
# people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to
|
||||
# open projects created with 2008. We run this as part of our release process.
|
||||
# If you obtained the code direct from version control and you want to use
|
||||
# MSVC 2005, you may have to run this manually. (Hint: Use Cygwin or MSYS.)
|
||||
|
||||
for file in *.sln; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
|
||||
s/Visual Studio 2008/Visual Studio 2005/g;' $file
|
||||
done
|
||||
|
||||
for file in *.vcproj; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
||||
done
|
||||
|
||||
# Yes, really, that's it.
|
||||
#! /bin/sh -e
|
||||
|
||||
# This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing
|
||||
# people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to
|
||||
# open projects created with 2008. We run this as part of our release process.
|
||||
# If you obtained the code direct from version control and you want to use
|
||||
# MSVC 2005, you may have to run this manually. (Hint: Use Cygwin or MSYS.)
|
||||
|
||||
for file in *.sln; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
|
||||
s/Visual Studio 2008/Visual Studio 2005/g;' $file
|
||||
done
|
||||
|
||||
for file in *.vcproj; do
|
||||
echo "downgrading $file..."
|
||||
sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file
|
||||
done
|
||||
|
||||
# Yes, really, that's it.
|
||||
|
|
Loading…
Reference in a new issue