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/Documentation/howto/howto-index.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 / Documentation / howto / howto-index.sh` 56 lines ยท 702 bytes Raw Blame History 1 #!/bin/sh 2 3 cat <<\EOF 4 Git Howto Index 5 =============== 6 7 Here is a collection of mailing list postings made by various 8 people describing how they use Git in their workflow. 9 10 EOF 11 12 for adoc 13 do 14 title=$(expr "$adoc" : '.*/\(.*\)\.adoc$') 15 from=$(sed -ne ' 16 /^$/q 17 /^From:[ ]/{ 18 s/// 19 s/^[ ]*// 20 s/[ ]*$// 21 s/^/by / 22 p 23 } 24 ' "$adoc") 25 26 abstract=$(sed -ne ' 27 /^Abstract:[ ]/{ 28 s/^[^ ]*// 29 x 30 s/.*// 31 x 32 : again 33 /^[ ]/{ 34 s/^[ ]*// 35 H 36 n 37 b again 38 } 39 x 40 p 41 q 42 }' "$adoc") 43 44 if grep 'Content-type: text/asciidoc' >/dev/null $adoc 45 then 46 file=$(expr "$adoc" : '\(.*\)\.adoc$').html 47 else 48 file="$adoc" 49 fi 50 51 echo "* link:howto/$(basename "$file")[$title] $from 52 $abstract 53 54 " 55 56 done