- passes/techmap/Makefile.inc: POSIX 'od' has no '-w' option. Use '-An' instead...
authorSiesh1oo <siesh1oo@siesh1oo.no>
Tue, 11 Mar 2014 13:06:41 +0000 (14:06 +0100)
committerSiesh1oo <siesh1oo@siesh1oo.no>
Tue, 11 Mar 2014 13:06:41 +0000 (14:06 +0100)
passes/techmap/Makefile.inc

index ae1ebbb5691c535810245621580e86afcbe9234f..b83ab84956f71d9beace30e4be313f412791568c 100644 (file)
@@ -10,10 +10,12 @@ OBJS += passes/techmap/extract.o
 GENFILES += passes/techmap/stdcells.inc
 
 passes/techmap/stdcells.inc: techlibs/common/stdcells.v
-       echo "// autogenerated from $<" > $@.new
-       od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \
-                       END { print 0 "};"; }' | fmt >> $@.new
-       mv $@.new $@
+       echo "// autogenerated from $<\n" > $@.new
+       echo "static char stdcells_code[] = {" >> $@.new
+       for c in `od -v -td1 -An $<` ; do echo " $$c," >> $@.new ; done
+       echo " 0 };" >> $@.new
+       fmt $@.new > $@
+       rm -f $@.new
 
 passes/techmap/techmap.o: passes/techmap/stdcells.inc