3 # This code is licensed under the GPL version 2 or later. See
4 # the COPYING file in the top-level directory.
8 substat
=".git-submodule-status"
16 test -e $substat ||
touch $substat
22 echo "$0: unexpectedly called with submodules but no git checkout exists"
28 test -f "$substat" ||
exit 1
29 trap "rm -f ${substat}.tmp" EXIT
30 git submodule status
$modules > "${substat}.tmp"
31 diff "${substat}" "${substat}.tmp" >/dev
/null
35 git submodule update
--init $modules 1>/dev
/null
2>&1
36 git submodule status
$modules > "${substat}"