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/gitweb/generate-gitweb-cgi.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 / gitweb / generate-gitweb-cgi.sh` 47 lines ยท 1555 bytes Raw Blame History 1 #!/bin/sh 2 3 set -e 4 5 if test $# -ne 4 6 then 7 echo >&2 "USAGE: $0 " 8 exit 1 9 fi 10 11 GITWEB_BUILD_OPTIONS="$1" 12 GIT_VERSION_FILE="$2" 13 INPUT="$3" 14 OUTPUT="$4" 15 16 . "$GITWEB_BUILD_OPTIONS" 17 . "$GIT_VERSION_FILE" 18 19 sed -e "1s|#!/usr/bin/perl|#!$PERL_PATH|" \ 20 -e "s|@PERL_PATH@|$PERL_PATH|" \ 21 -e "s|@JSMIN@|$JSMIN|" \ 22 -e "s|@CSSMIN@|$CSSMIN|" \ 23 -e "s|@GIT_VERSION@|$GIT_VERSION|" \ 24 -e "s|@GIT_BINDIR@|$GIT_BINDIR|" \ 25 -e "s|@GITWEB_CONFIG@|$GITWEB_CONFIG|" \ 26 -e "s|@GITWEB_CONFIG_SYSTEM@|$GITWEB_CONFIG_SYSTEM|" \ 27 -e "s|@GITWEB_CONFIG_COMMON@|$GITWEB_CONFIG_COMMON|" \ 28 -e "s|@GITWEB_HOME_LINK_STR@|$GITWEB_HOME_LINK_STR|" \ 29 -e "s|@GITWEB_SITENAME@|$GITWEB_SITENAME|" \ 30 -e "s|@GITWEB_PROJECTROOT@|$GITWEB_PROJECTROOT|" \ 31 -e "s|@GITWEB_PROJECT_MAXDEPTH@|$GITWEB_PROJECT_MAXDEPTH|" \ 32 -e "s|@GITWEB_EXPORT_OK@|$GITWEB_EXPORT_OK|" \ 33 -e "s|@GITWEB_STRICT_EXPORT@|$GITWEB_STRICT_EXPORT|" \ 34 -e "s|@GITWEB_BASE_URL@|$GITWEB_BASE_URL|" \ 35 -e "s|@GITWEB_LIST@|$GITWEB_LIST|" \ 36 -e "s|@GITWEB_HOMETEXT@|$GITWEB_HOMETEXT|" \ 37 -e "s|@GITWEB_CSS@|$GITWEB_CSS|" \ 38 -e "s|@GITWEB_LOGO@|$GITWEB_LOGO|" \ 39 -e "s|@GITWEB_FAVICON@|$GITWEB_FAVICON|" \ 40 -e "s|@GITWEB_JS@|$GITWEB_JS|" \ 41 -e "s|@GITWEB_SITE_HTML_HEAD_STRING@|$GITWEB_SITE_HTML_HEAD_STRING|" \ 42 -e "s|@GITWEB_SITE_HEADER@|$GITWEB_SITE_HEADER|" \ 43 -e "s|@GITWEB_SITE_FOOTER@|$GITWEB_SITE_FOOTER|" \ 44 -e "s|@HIGHLIGHT_BIN@|$HIGHLIGHT_BIN|" \ 45 "$INPUT" >"$OUTPUT" 46 47 chmod a+x "$OUTPUT"