#!/bin/sh## This code is licensed under the GPL version 2 or later. See# the COPYING file in the top-level directory.substat=".git-submodule-status"command=1ドルshiftmaybe_modules="$@"# if --with-git-submodules=ignore, do nothingtest "$command" = "ignore" && exit 0test -z "$GIT" && GIT=gitcd "$(dirname "0ドル")/.."update_error() {echo "0ドル: $*"echoecho "Unable to automatically checkout GIT submodules '$modules'."echo "If you require use of an alternative GIT binary (for example to"echo "enable use of a transparent proxy), then please specify it by"echo "running configure by with the '--with-git' argument. e.g."echoecho " $ ./configure --with-git='tsocks git'"echoecho "Alternatively you may disable automatic GIT submodule checkout"echo "with:"echoecho " $ ./configure --with-git-submodules=validate"echoecho "and then manually update submodules prior to running make, with:"echoecho " $ scripts/git-submodule.sh update $modules"echoexit 1}validate_error() {if test "1ドル" = "validate"; thenecho "GIT submodules checkout is out of date, and submodules"echo "configured for validate only. Please run"echo " scripts/git-submodule.sh update $maybe_modules"echo "from the source directory or call configure with"echo " --with-git-submodules=update"echo "To disable GIT submodules validation, use"echo " --with-git-submodules=ignore"fiexit 1}modules=""for m in $maybe_modulesdo$GIT submodule status $m 1> /dev/null 2>&1if test $? = 0thenmodules="$modules$m"elseecho "warn: ignoring non-existent submodule $m"fidoneif test -n "$maybe_modules" && ! test -e ".git"thenecho "0ドル: unexpectedly called with submodules but no git checkout exists"exit 1ficase "$command" instatus|validate)if test -z "$maybe_modules"thentest -s ${substat} && validate_error "$command" || exit 0fitest -f "$substat" || validate_error "$command"for module in $modules; doCURSTATUS=$($GIT submodule status $module)OLDSTATUS=$(cat $substat | grep $module)if test "$CURSTATUS" != "$OLDSTATUS"; thenvalidate_error "$command"fidoneexit 0;;update)if test -z "$maybe_modules"thentest -e $substat || touch $substatexit 0fi$GIT submodule update --init $modules 1>/dev/nulltest $? -ne 0 && update_error "failed to update modules"$GIT submodule status $modules > "${substat}"test $? -ne 0 && update_error "failed to save git submodule status" >&2;;esacexit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。