9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

mkdev (258B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $$.tmp' EXIT HUP INT QUIT TERM
      4 
      5 ./section dev $@ |
      6 awk '
      7 BEGIN		{print "DEVS =\\"}
      8 /^\t\t/		{objs[$1 ".o"] = 1; next}
      9 /^\t/		{objs["dev" $1 ".o"] = 1; next}
     10 END		{for (i in objs)
     11 			printf "\t%s\\\n", i}' > $$.tmp &&
     12 mv $$.tmp devs.mk