Print this page
6949 illumos nawk should be using from Makefile.master


  32 # /etc/user_attr
  33 #
  34 #  Allowable exit codes
  35 #
  36 # 0 - success
  37 # 2 - warning or possible error condition. Installation continues. A warning
  38 #     message is displayed at the time of completion.
  39 #
  40 
  41 umask 022
  42 
  43 tmp_dir=${TMPDIR:-/tmp}
  44 
  45 PATH="/usr/bin:/usr/sbin:${PATH}"
  46 export PATH
  47 
  48 basename_cmd=basename
  49 cp_cmd=cp
  50 egrep_cmd=egrep
  51 mv_cmd=mv
  52 nawk_cmd=nawk
  53 rm_cmd=rm
  54 sed_cmd=sed
  55 sort_cmd=sort
  56 
  57 # $1 is the type
  58 # $2 is the "old/existing file"
  59 # $3 is the "new (to be merged)" file
  60 # $4 is the output file
  61 # returns 0 on success
  62 # returns 2 on failure if nawk fails with non-zero exit status
  63 #
  64 dbmerge() {
  65 #
  66 # Remove the ident lines.
  67 #
  68         ${egrep_cmd} -v '^#[pragma      ]*ident' $2 > $4.old 2>/dev/null
  69 #
  70 # If the new file has a Sun copyright, remove the Sun copyright from the old
  71 # file.
  72 #




  32 # /etc/user_attr
  33 #
  34 #  Allowable exit codes
  35 #
  36 # 0 - success
  37 # 2 - warning or possible error condition. Installation continues. A warning
  38 #     message is displayed at the time of completion.
  39 #
  40 
  41 umask 022
  42 
  43 tmp_dir=${TMPDIR:-/tmp}
  44 
  45 PATH="/usr/bin:/usr/sbin:${PATH}"
  46 export PATH
  47 
  48 basename_cmd=basename
  49 cp_cmd=cp
  50 egrep_cmd=egrep
  51 mv_cmd=mv
  52 nawk_cmd=${NAWK:-nawk}
  53 rm_cmd=rm
  54 sed_cmd=sed
  55 sort_cmd=sort
  56 
  57 # $1 is the type
  58 # $2 is the "old/existing file"
  59 # $3 is the "new (to be merged)" file
  60 # $4 is the output file
  61 # returns 0 on success
  62 # returns 2 on failure if nawk fails with non-zero exit status
  63 #
  64 dbmerge() {
  65 #
  66 # Remove the ident lines.
  67 #
  68         ${egrep_cmd} -v '^#[pragma      ]*ident' $2 > $4.old 2>/dev/null
  69 #
  70 # If the new file has a Sun copyright, remove the Sun copyright from the old
  71 # file.
  72 #