ia64/xen-unstable

changeset 8094:af3e4a594e4c

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.
author Michael.Fetterman@cl.cam.ac.uk
date Wed Nov 23 14:56:43 2005 +0100 (2005-11-23)
parents f61b8d362fc4
children 9971d8d1f631
files install.sh tools/check/check_hotplug
line diff
     1.1 --- a/install.sh	Wed Nov 23 14:55:08 2005 +0100
     1.2 +++ b/install.sh	Wed Nov 23 14:56:43 2005 +0100
     1.3 @@ -28,7 +28,7 @@ cp -fdRL $src/etc/init.d/* $dst/etc/init
     1.4  echo "All done."
     1.5  
     1.6  [ -x "$(which udevinfo)" ] && \
     1.7 -  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
     1.8 +  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/')
     1.9  
    1.10  if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
    1.11    cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/
     2.1 --- a/tools/check/check_hotplug	Wed Nov 23 14:55:08 2005 +0100
     2.2 +++ b/tools/check/check_hotplug	Wed Nov 23 14:56:43 2005 +0100
     2.3 @@ -7,7 +7,7 @@ function error {
     2.4     exit 1
     2.5  }
     2.6  [ -x "$(which udevinfo)" ] && \
     2.7 -  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
     2.8 +  UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\ \([0-9]\+\)[^0-9]*/\1/')
     2.9  
    2.10  if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
    2.11    exit 0