git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATH] sed -e '/RE/r rfile/' needs space in 'r rfile'

From
MRMichal Rokos <michal.rokos@nextsoft.cz>
Date
Jul 8, 2006, 15:27 UTC
Message-ID
<200607081727.10837.michal.rokos@nextsoft.cz>
Johannes,

in commit 07002287f3e219a16a948a8a6eca0a41162a491f you cleaned up 'replace ugly and unportable sed invocation' as you said. Please note, that some SEDs (like HP-UX one) mandate a space between 'r' and 'rfile'.

Michal
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
diff --git a/Makefile b/Makefile
index 202f261..8f9881f 100644
--- a/Makefile
+++ b/Makefile
@@ -552,9 +553,9 @@ git-instaweb: git-instaweb.sh gitweb/git
 	    -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
 	    -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
 	    -e 's/@@NO_PYTHON@@/$(NO_PYTHON)/g' \
-	    -e '/@@GITWEB_CGI@@/rgitweb/gitweb.cgi' \
+	    -e '/@@GITWEB_CGI@@/r gitweb/gitweb.cgi' \
 	    -e '/@@GITWEB_CGI@@/d' \
-	    -e '/@@GITWEB_CSS@@/rgitweb/gitweb.css' \
+	    -e '/@@GITWEB_CSS@@/r gitweb/gitweb.css' \
 	    -e '/@@GITWEB_CSS@@/d' \
 	    $@.sh > $@+
 	chmod +x $@+
-- 
Michal Rokos

NextSoft s.r.o.
Vyskočilova 1/1410
140 21 Praha 4
phone:  +420 267 224 311
fax:    +420 267 224 307
mobile: +420 736 646 591
e-mail: michal.rokos@nextsoft.cz
Next: Johannes Schindelin
Message 1 of 4 in “[PATH] sed -e '/RE/r rfile/' needs space in 'r rfile'”
  1. Michal RokosJul 8, 2006
  2. Johannes SchindelinJul 8, 2006
  3. Junio C HamanoJul 8, 2006
  4. Johannes SchindelinJul 8, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.