git-instaweb.sh uses alternation in a sed script. Unfortunately, this is not POSIX compliant and does not work on some BSD's. This patch removes the alternation via the simple expedient of doubling the number of lines in the sed script. Signed-off-by: Bryan Larsen <bryan@xxxxxxxxx> --- git-instaweb.sh | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/git-instaweb.sh b/git-instaweb.sh index b79c6b6..ce631a0 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -207,10 +207,14 @@ EOF } script=' -s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "'`dirname $fqgitdir`'";# -s#\(my\|our\) $gitbin =.*#\1 $gitbin = "'$GIT_EXEC_PATH'";# -s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;# -s#\(my\|our\) $git_temp =.*#\1 $git_temp = "'$fqgitdir/gitweb/tmp'";#' +s#^my $projectroot =.*#my $projectroot = "'`dirname $fqgitdir`'";# +s#^our $projectroot =.*#our $projectroot = "'`dirname $fqgitdir`'";# +s#my $gitbin =.*#my $gitbin = "'$GIT_EXEC_PATH'";# +s#our $gitbin =.*#our $gitbin = "'$GIT_EXEC_PATH'";# +s#my $projects_list =.*#my $projects_list = $projectroot;# +s#our $projects_list =.*#our $projects_list = $projectroot;# +s#my $git_temp =.*#my $git_temp = "'$fqgitdir/gitweb/tmp'";# +s#our $git_temp =.*#our $git_temp = "'$fqgitdir/gitweb/tmp'";#' gitweb_cgi () { cat > "$1.tmp" <<\EOFGITWEB -- 1.5.3.1 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html