[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix regexp in install scripts so it works with sed.
# HG changeset patch # User Michael.Fetterman@xxxxxxxxxxxx # Node ID af3e4a594e4c35fd0a65740f10cc54173d1928b9 # Parent f61b8d362fc41372762eaf7fec437f403afa8fc7 Fix regexp in install scripts so it works with sed. sed does not recognize \s as matching whitespace. Fixed two installation scripts which both assumed that it did. diff -r f61b8d362fc4 -r af3e4a594e4c install.sh --- a/install.sh Wed Nov 23 13:55:08 2005 +++ b/install.sh Wed Nov 23 13:56:43 2005 @@ -28,7 +28,7 @@ echo "All done." [ -x "$(which udevinfo)" ] && \ - UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/') if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/ diff -r f61b8d362fc4 -r af3e4a594e4c tools/check/check_hotplug --- a/tools/check/check_hotplug Wed Nov 23 13:55:08 2005 +++ b/tools/check/check_hotplug Wed Nov 23 13:56:43 2005 @@ -7,7 +7,7 @@ exit 1 } [ -x "$(which udevinfo)" ] && \ - UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/') if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then exit 0 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |