@matheusbsbs / matheus-bagliano / commits / 6ee030d68a
Fork 0

instaweb: fix unportable ';' usage in sed

Hint taken from Johannes. I've tested this with sed --posix on my system with GNU sed and it works fine with and also without it. Further portability testing/review would be good. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric Wong committed Jul 2, 2006 at 04:56 UTC 6ee030d68adc1fb51c3abda458999fa7afc43db5
1 file changed +3 -3
git-instaweb.sh
+3 -3
@@ -194,9 +194,9 @@ EOF
194 }
195
196 script='
197 -s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "'`dirname $fqgitdir`'";#;
198 -s#\(my\|our\) $gitbin =.*#\1 $gitbin = "'$GIT_EXEC_PATH'";#;
199 -s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;#;
197 +s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "'`dirname $fqgitdir`'";#
198 +s#\(my\|our\) $gitbin =.*#\1 $gitbin = "'$GIT_EXEC_PATH'";#
199 +s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;#
200 s#\(my\|our\) $git_temp =.*#\1 $git_temp = "'$fqgitdir/gitweb/tmp'";#'
201
202 gitweb_cgi () {