diff publish.sh @ 53:394aec9712b6

Improved portability of publish.sh The regular expression used with sed now uses the basic syntax.
author Oleg Oshmyan <chortos@inbox.lv>
date Mon, 20 Dec 2010 17:26:34 +0200
parents 4ea7133ac25c
children 25b929aa92a1
line wrap: on
line diff
--- a/publish.sh	Sun Dec 19 23:33:07 2010 +0200
+++ b/publish.sh	Mon Dec 20 17:26:34 2010 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-VERSION=`hg summary | grep '^parent' | sed -En 's/^parent: [0-9]*:([0-9a-f]+) .*$/\1/p'`
+VERSION=`hg summary | grep '^parent' | sed -n 's/^parent: [0-9]*:\([0-9a-f]\{1,\}\) .*$/\1/p'`
 if [ -z "$VERSION" ]
 then
 	echo The current Mercurial changeset could not be determined. >&2