Print this page
XXXX don't ship bldenv and nightly

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/Makefile
          +++ new/usr/src/tools/scripts/Makefile
↓ open down ↓ 21 lines elided ↑ open up ↑
  22   22  # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  #
  24   24  # Copyright 2010, Richard Lowe
  25   25  #
  26   26  # Copyright 2018 Joyent, Inc.
  27   27  
  28   28  SHELL=/usr/bin/ksh93
  29   29  
  30   30  SHFILES= \
  31   31          Install \
  32      -        bldenv \
  33   32          build_cscope \
  34   33          bringovercheck \
  35   34          checkpaths \
  36   35          cstyle \
  37   36          elfcmp \
  38   37          flg.flp \
  39   38          genoffsets \
  40      -        nightly \
  41   39          onu \
  42   40          protocmp.terse \
  43   41          sccscheck \
  44   42          webrev \
  45   43          which_scm \
  46   44          ws \
  47   45          xref
  48   46  
  49   47  PERLFILES= \
  50   48          check_rtime \
↓ open down ↓ 18 lines elided ↑ open up ↑
  69   67          mapfilechk \
  70   68          validate_pkg \
  71   69          wscheck \
  72   70          wsdiff
  73   71  
  74   72  SCRIPTLINKS= \
  75   73          git-nits
  76   74  
  77   75  MAN1ONBLDFILES= \
  78   76          Install.1onbld \
  79      -        bldenv.1onbld \
  80   77          bringovercheck.1onbld \
  81   78          cddlchk.1onbld \
  82   79          checkpaths.1onbld \
  83   80          check_rtime.1onbld \
  84   81          cstyle.1onbld \
  85   82          find_elf.1onbld \
  86   83          flg.flp.1onbld \
  87   84          git-pbchk.1onbld \
  88   85          hdrchk.1onbld \
  89   86          interface_check.1onbld \
  90   87          interface_cmp.1onbld \
  91   88          jstyle.1onbld \
  92   89          mapfilechk.1onbld \
  93      -        nightly.1onbld \
  94   90          onu.1onbld \
  95   91          sccscheck.1onbld \
  96   92          webrev.1onbld \
  97   93          which_scm.1onbld \
  98   94          ws.1onbld \
  99   95          wsdiff.1onbld \
 100   96          xref.1onbld
 101   97  
 102   98  MAN1ONBLDLINKS= \
 103   99          git-nits.1onbld
↓ open down ↓ 3 lines elided ↑ open up ↑
 107  103  
 108  104  ETCFILES= \
 109  105          its.conf \
 110  106          its.reg
 111  107  
 112  108  EXCEPTFILES= \
 113  109          check_rtime \
 114  110          interface_check \
 115  111          interface_cmp
 116  112  
 117      -CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
      113 +CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) onu.sh
 118  114  
 119  115  include ../Makefile.tools
 120  116  
 121  117  ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 122  118  ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 123  119  
 124  120  $(ROOTONBLDETCFILES)            := FILEMODE=    644
 125  121  $(ROOTONBLDEXCEPTFILES)         := FILEMODE=    644
 126  122  $(ROOTONBLDPERLMODULES)         := FILEMODE=    644
 127  123  $(ROOTONBLDMAKEFILES)           := FILEMODE=    644
↓ open down ↓ 17 lines elided ↑ open up ↑
 145  141  
 146  142  install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)            \
 147  143                  $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)             \
 148  144                  $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES)      \
 149  145                  $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)              \
 150  146                  $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
 151  147  
 152  148  clean:
 153  149          $(RM) $(CLEANFILES)
 154  150  
 155      -bldenv: bldenv.sh stdenv.sh
 156      -        $(RM) "$@"
 157      -        sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
 158      -        # Check for shell lint and fail if we hit warnings
 159      -        shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
 160      -                [[ "$${shlintout}" != "" ]] && \
 161      -                { print -r -- "$${shlintout}" ; false ; } || true
 162      -        $(CHMOD) +x "$@"
 163      -
 164      -bldenv.1onbld: bldenv
 165      -        $(RM) "$@"
 166      -        (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
 167      -        sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
 168      -        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
 169      -        -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
 170      -        -e 's/(1)/(1ONBLD)/' > "$@"
 171      -
 172      -nightly: nightly.sh stdenv.sh
 173      -        $(RM) "$@"
 174      -        sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
 175      -        $(CHMOD) +x "$@"
 176      -
 177  151  #
 178  152  # Not run by default: bootstrap...
 179  153  check:
 180  154          $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
 181  155  
 182  156  include ../Makefile.targ
 183  157  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX