make it more robust
authorJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Mon, 16 Feb 1987 15:11:06 +0000 (07:11 -0800)
committerJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Mon, 16 Feb 1987 15:11:06 +0000 (07:11 -0800)
SCCS-vsn: local/sccscmds/sccscmds.2/util/mksyswrite.sh 1.2
SCCS-vsn: local/sccscmds/sccscmds.ok/util/mksyswrite.sh 1.2

usr/src/local/sccscmds/sccscmds.2/util/mksyswrite.sh
usr/src/local/sccscmds/sccscmds.ok/util/mksyswrite.sh

index f1dc955..7b8c916 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh
 #! /bin/sh
-# @(#)mksyswrite.sh    1.1     87/02/15
+# mksyswrite.sh        1.2     87/02/15
 
 
-mach=`ls -l /usr/include/machine | sed 's/.*-> \.\///'`
+mach=`ls -l /usr/include/machine | sed -e 's/.*-> \.\///' -e 's/.*-> //'`
 /lib/cpp /usr/src/lib/libc/$mach/sys/write.c |sed 's/_write/_syswrite/g' >syswrite.s
 /lib/cpp /usr/src/lib/libc/$mach/sys/write.c |sed 's/_write/_syswrite/g' >syswrite.s
index f1dc955..7b8c916 100644 (file)
@@ -1,5 +1,5 @@
 #! /bin/sh
 #! /bin/sh
-# @(#)mksyswrite.sh    1.1     87/02/15
+# mksyswrite.sh        1.2     87/02/15
 
 
-mach=`ls -l /usr/include/machine | sed 's/.*-> \.\///'`
+mach=`ls -l /usr/include/machine | sed -e 's/.*-> \.\///' -e 's/.*-> //'`
 /lib/cpp /usr/src/lib/libc/$mach/sys/write.c |sed 's/_write/_syswrite/g' >syswrite.s
 /lib/cpp /usr/src/lib/libc/$mach/sys/write.c |sed 's/_write/_syswrite/g' >syswrite.s