[email protected] | 518597c | 2012-11-01 05:03:08 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | while test "$PWD" != "/"; do | ||||
4 | if test -f "$PWD/src/.gitmodules"; then | ||||
5 | break | ||||
6 | fi | ||||
7 | cd .. | ||||
8 | done | ||||
9 | if ! test -f "$PWD/src/.gitmodules"; then | ||||
10 | echo "Could not find the root of your checkout; aborting." 1>&2 | ||||
11 | exit 1 | ||||
12 | fi | ||||
13 | |||||
14 | gclient_spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]" | ||||
15 | gclient runhooks --spec="$gclient_spec" | ||||
16 | exit $? |