[Debian-ha-commits] [pacemaker] 06/69: Use extended regex for matching versions

Christoph Berg myon at debian.org
Tue Jan 26 09:14:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch debian/master
in repository pacemaker.

commit 8ebeb52563960decb426ee024488b501fea9fcbb
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date:   Tue Dec 15 14:53:05 2015 +0100

    Use extended regex for matching versions
    
    This is also supported by FreeBSD's sed and fixes
    building the rng files on FreeBSD
---
 xml/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xml/Makefile.am b/xml/Makefile.am
index 81ba763..70b7370 100644
--- a/xml/Makefile.am
+++ b/xml/Makefile.am
@@ -30,7 +30,7 @@ RNGdir			= $(dtddir)
 # Sorted list of available numeric RNG versions,
 # extracted from filenames like NAME-MAJOR[.MINOR][.MINOR-MINOR].rng
 RNG_numeric_versions    = $(shell ls -1 *.rng \
-			  | sed -n -e 's/^.*-\([0-9.]\+\).rng$$/\1/p' \
+			  | sed -E -n -e 's/^.*-([0-9.]+).rng$$/\1/p' \
 			  | sort -u -t. -k 1,1n -k 2,2n -k 3,3n)
 
 # The highest numeric version

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list