From 346139298bc547d1cbeb5d41f2067577b96ff1fa Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 30 Nov 2008 16:07:06 -0600 Subject: Simplify mercurial revision command Not only does this require less sed-magic, it also fixes FS#12286 where fetching the revision number fails if mercurial is in compact mode. Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 599f0f9c..4cc255cc 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1062,7 +1062,7 @@ devel_check() { hg clone $_hgroot/$_hgrepo ./src/$_hgrepo cd ./src/$_hgrepo fi - newpkgver=$(hg tip | sed -n '1s/[^0-9]*\([^:]*\):.*$/\1/p') + newpkgver=$(hg tip --template "{rev}") cd ../../ fi -- cgit v1.2.3-24-g4f1b