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/git-gui/generate-tclindex.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 / git-gui / generate-tclindex.sh` 32 lines ยท 618 bytes Raw Blame History 1 #!/bin/sh 2 3 if test "$#" -lt 3 4 then 5 echo >&2 "usage: $0 [...]" 6 exit 1 7 fi 8 9 BUILD_DIR="$1" 10 BUILD_OPTIONS="$2" 11 shift 2 12 LIBFILES="$(echo "$@" | sort | sed 's|lib/||g')" 13 14 . "$BUILD_OPTIONS" 15 16 cd "$BUILD_DIR" 17 18 if { 19 echo "source lib/class.tcl;" 20 echo "auto_mkindex lib $LIBFILES" 21 } | "$TCL_PATH" 22 then 23 : ok 24 else 25 echo >&2 " * $TCL_PATH failed; using unoptimized loading" 26 rm -f lib/tclIndex 27 echo '# Autogenerated by git-gui Makefile' >lib/tclIndex 28 echo >>lib/tclIndex 29 echo "class.tcl" >>lib/tclIndex 30 printf "%s\n" $LIBFILES >>lib/tclIndex 31 echo >>lib/tclIndex 32 fi