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/t/unit-tests/generate-clar-decls.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 / t / unit-tests / generate-clar-decls.sh` 20 lines ยท 391 bytes Raw Blame History 1 #!/bin/sh 2 3 if test $# -lt 2 4 then 5 echo "USAGE: $0 ..." 2>&1 6 exit 1 7 fi 8 9 OUTPUT="$1" 10 shift 11 12 for suite in "$@" 13 do 14 suite_name=$(basename "$suite") 15 suite_name=${suite_name%.c} 16 suite_name=${suite_name#u-} 17 suite_name=$(echo "$suite_name" | tr '-' '_') 18 sed -ne "s/^\(void test_${suite_name}__[a-zA-Z_0-9][a-zA-Z_0-9]*(void)\)$/extern \1;/p" "$suite" || 19 exit 1 20 done >"$OUTPUT"