Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/tools/generate-configlist.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / tools / generate-configlist.sh` 55 lines ยท 1063 bytes Raw Blame History 1 #!/bin/sh 2 3 SOURCE_DIR="$1" 4 OUTPUT="$2" 5 DEPFILE="$3" 6 7 if test -z "$SOURCE_DIR" || ! test -d "$SOURCE_DIR" || test -z "$OUTPUT" 8 then 9 echo >&2 "USAGE: $0 []" 10 exit 1 11 fi 12 13 print_config_list () { 14 cat <"$OUTPUT" 40 41 if test -n "$DEPFILE" 42 then 43 QUOTED_OUTPUT="$(printf '%s\n' "$OUTPUT" | sed 's,[&/\],\\&,g')" 44 { 45 printf '%s' "$QUOTED_OUTPUT: " 46 printf '%s\n' "$SOURCE_DIR"/Documentation/*config.adoc \ 47 "$SOURCE_DIR"/Documentation/config/*.adoc | 48 sed -e 's/[# ]/\\&/g' | 49 tr '\n' ' ' 50 printf '\n' 51 printf '%s:\n' "$SOURCE_DIR"/Documentation/*config.adoc \ 52 "$SOURCE_DIR"/Documentation/config/*.adoc | 53 sed -e 's/[# ]/\\&/g' 54 } >"$DEPFILE" 55 fi