# HG changeset patch # User Oleg Oshmyan # Date 1292858794 -7200 # Node ID 394aec9712b67d4f2fdfbc9d2cd8dd9a7ce38de4 # Parent 9a23141cbb643e541c5207c902ca56d2affca380 Improved portability of publish.sh The regular expression used with sed now uses the basic syntax. diff -r 9a23141cbb64 -r 394aec9712b6 publish.sh --- 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