]> granicus.if.org Git - strace/commitdiff
2004-07-11 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 12 Jul 2004 06:11:16 +0000 (06:11 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 12 Jul 2004 06:11:16 +0000 (06:11 +0000)
* linux/ioctlent.sh: Replace asm with $asm in all places.

linux/ioctlent.sh

index 5118fbd29d4961c935736a5cd85b7452bc2fe70b..2da3618d9dc05a220f893df1a8f0ab4c7bd50a8f 100644 (file)
@@ -52,7 +52,8 @@ lookup_ioctls()
        # Build the list of all ioctls
        regexp='^[[:space:]]*#[[:space:]]*define[[:space:]]\+[A-Z][A-Z0-9_]*[[:space:]]\+0x'"$type"'..\>'
        (cd "$dir" ; grep "$regexp" "$@" /dev/null 2>/dev/null ) |
-               sed -ne 's/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*\(0x'"$type"'..\).*/    { "\1", "\2",   \3      },/p' \
+               sed -ne "s,$asm/,asm/,g"'
+s/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*\(0x'"$type"'..\).*/    { "\1", "\2",   \3      },/p' \
                >> ioctls.h
 }
 
@@ -71,7 +72,7 @@ files="linux/* $asm/* scsi/* sound/*"
 # Build the list of all ioctls
 regexp='^[[:space:]]*#[[:space:]]*define[[:space:]]\+[A-Z][A-Z0-9_]*[[:space:]]\+_S\?\(IO\|IOW\|IOR\|IOWR\)\>'
 (cd $dir ; grep $regexp $files 2>/dev/null ) | \
-       sed -ne "s,$asm/,asm/,"'
+       sed -ne "s,$asm/,asm/,g"'
 s/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*_S\?I.*(\([^[,]*\)[[:space:]]*,[[:space:]]*\([^,)]*\).*/        { "\1", "\2",   _IOC(_IOC_NONE,\3,\4,0) },/p' \
        >> ioctls.h