Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/head/Makefile
          +++ new/usr/src/head/Makefile
↓ open down ↓ 459 lines elided ↑ open up ↑
 460  460  
 461  461  mhdx.h: ../uts/common/sys/lvm/mhdx.x
 462  462          $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mhdx.x | \
 463  463          awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 464  464          /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 465  465          { print $0 } \
 466  466          ' > $@
 467  467  
 468  468  mdiox.h:        ../uts/common/sys/lvm/mdiox.x
 469  469          $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mdiox.x | \
 470      -        nawk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
 471      -        nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
      470 +        /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
      471 +        /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
 472  472          awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 473  473          /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 474  474          { print $0 } \
 475  475          ' > $@
 476  476  
 477  477  metamed.h:      ../uts/common/sys/lvm/metamed.x
 478  478          $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/metamed.x | \
 479      -        nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
      479 +        /usr/xpg4/bin/awk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
 480  480          awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 481  481          /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 482  482          { print $0 } \
 483  483          ' > $@
 484  484  
 485  485  metamhd.h:      metamhd.x
 486  486          $(RPCGEN) $(RPCGENFLAGS) metamhd.x | \
 487  487          awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 488  488          /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 489  489          { print $0 } \
 490  490          ' > $@
 491  491  
 492  492  metacl.h:       metacl.x
 493  493          $(RPCGEN) $(RPCGENFLAGS) metacl.x | \
 494  494          awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 495  495          /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
 496  496          { print $0 } \
 497  497          ' > $@
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX