Skip to content
Snippets Groups Projects
Commit 62775690 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix sanity

parent bd4e3784
No related branches found
No related tags found
No related merge requests found
...@@ -36,13 +36,11 @@ export TEST=true ...@@ -36,13 +36,11 @@ export TEST=true
cd `dirname $0`/../.. cd `dirname $0`/../..
./tools/buildgen/generate_projects.sh submodules=`mktemp /tmp/submXXXXXX`
want_submodules=`mktemp /tmp/submXXXXXX`
submodules=`mktemp`
git submodule > $submodules
diff -u $submodules - << EOF git submodule | awk '{ print $1 }' | sort > $submodules
cat << EOF | awk '{ print $1 }' | sort > $want_submodules
05b155ff59114735ec8cd089f669c4c3d8f59029 third_party/gflags (v2.1.0-45-g05b155f) 05b155ff59114735ec8cd089f669c4c3d8f59029 third_party/gflags (v2.1.0-45-g05b155f)
c99458533a9b4c743ed51537e25989ea55944908 third_party/googletest (release-1.7.0) c99458533a9b4c743ed51537e25989ea55944908 third_party/googletest (release-1.7.0)
33dd08320648ac71d7d9d732be774ed3818dccc5 third_party/openssl (OpenSSL_1_0_2d) 33dd08320648ac71d7d9d732be774ed3818dccc5 third_party/openssl (OpenSSL_1_0_2d)
...@@ -50,7 +48,11 @@ diff -u $submodules - << EOF ...@@ -50,7 +48,11 @@ diff -u $submodules - << EOF
50893291621658f355bc5b4d450a8d06a563053d third_party/zlib (v1.2.8) 50893291621658f355bc5b4d450a8d06a563053d third_party/zlib (v1.2.8)
EOF EOF
if [ -f cache.mk ] ; then diff -u $submodules $want_submodules
if git ls-files cache.mk --error-unmatch &> /dev/null ; then
echo "Please don't commit cache.mk" echo "Please don't commit cache.mk"
exit 1 exit 1
fi fi
./tools/buildgen/generate_projects.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment