[Telepathy-commits] [telepathy-spec/master] Change delimiter for sed command from s, , , to s!!! to avoid breakage when its contents include a comma

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Sep 9 07:54:45 PDT 2008


---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index ec2168b..8ef6dd4 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,7 @@ clean:
 maintainer-upload-snapshot: doc/spec.html
 	@install -d tmp
 	cp doc/spec.html tmp/spec.html
-	sed -i~ -e 's,\(<h2>Version [0-9][0-9.]*\)\(</h2>\),\1 (git commit '`git rev-list -n 1 --abbrev-commit --abbrev=8 HEAD`', '`date +%Y-%m-%d`')\2,' \
+	sed -i~ -e 's!\(<h2>Version [0-9][0-9.]*\)\(</h2>\)!\1 (git commit '`git rev-list -n 1 --abbrev-commit --abbrev=8 HEAD`', '`date +%Y-%m-%d`')\2!' \
 		tmp/spec.html
 	scp tmp/spec.html \
 		telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/spec-snapshot.html
-- 
1.5.6.3




More information about the Telepathy-commits mailing list