1 #!/bin/ksh
   2 #
   3 # This file and its contents are supplied under the terms of the
   4 # Common Development and Distribution License ("CDDL"), version 1.0.
   5 # You may only use this file in accordance with the terms of version
   6 # 1.0 of the CDDL.
   7 #
   8 # A full copy of the text of the CDDL should have accompanied this
   9 # source.  A copy of the CDDL is also available via the Internet at
  10 # http://www.illumos.org/license/CDDL.
  11 #
  12 
  13 #
  14 # Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  15 #
  16 
  17 # Use distributed make (dmake) by default.
  18 make=${MAKE:-dmake}
  19 
  20 CLOSED_IS_PRESENT=no
  21 export CLOSED_IS_PRESENT
  22 
  23 # Do this if you want to use dbx or gdb
  24 # export SOURCEDEBUG=yes
  25 
  26 [ -n "$SRC" ] || {
  27   echo "SRC not set.  Run 'ws' or 'bldenv' first."
  28   exit 1
  29 }
  30 
  31 cpu=`uname -p`
  32 case $cpu in
  33 i386)
  34         x=intel
 
 169         find uts/common/rpcsvc -name '*.[ch]' -print |sort
 170         find uts/common/idmap -name '*.[ch]' -print |sort
 171         find head -name '*.h' -print |sort
 172         find lib/libidmap -name '*.[ch]' -print |sort
 173         find lib/libadutils -name '*.[ch]' -print |sort
 174         find lib/libldap5 -name '*.[ch]' -print |sort
 175         find cmd/idmap -name '*.[ch]' -print |sort
 176         ) > $SRC/cscope.files
 177 
 178         (cd $SRC ;
 179         exctags -e --langmap=c:+.ndl -h ndl -L - < cscope.files
 180         cscope -b )
 181 }
 182 
 183 ################################################################
 184 # This creates a tarfile one can use to update a test machine.
 185 
 186 do_tar() {
 187         git_rev=`git rev-parse --short=8 HEAD`
 188         files="
 189 lib/svc/manifest/system/idmap.xml
 190 usr/lib/idmapd
 191 usr/lib/libads.so.1
 192 usr/lib/$arch64/libads.so.1
 193 usr/lib/libadutils.so.1
 194 usr/lib/$arch64/libadutils.so.1
 195 usr/lib/libidmap.so.1
 196 usr/lib/$arch64/libidmap.so.1
 197 usr/lib/libldap.so.5
 198 usr/lib/$arch64/libldap.so.5
 199 usr/lib/nss_ad.so.1
 200 usr/lib/$arch64/nss_ad.so.1
 201 usr/bin/test-getdc
 202 usr/sbin/idmap
 203 usr/sbin/nltest
 204 "
 205 
 206         (cd $ROOT && tar cfj ../../idmap-${git_rev}.tar.bz2 $files)
 207 }
 208 
 
 | 
   1 #!/bin/ksh
   2 #
   3 # This file and its contents are supplied under the terms of the
   4 # Common Development and Distribution License ("CDDL"), version 1.0.
   5 # You may only use this file in accordance with the terms of version
   6 # 1.0 of the CDDL.
   7 #
   8 # A full copy of the text of the CDDL should have accompanied this
   9 # source.  A copy of the CDDL is also available via the Internet at
  10 # http://www.illumos.org/license/CDDL.
  11 #
  12 
  13 #
  14 # Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  15 #
  16 
  17 # Use distributed make (dmake) by default.
  18 make=${MAKE:-dmake}
  19 
  20 CLOSED_IS_PRESENT=no
  21 export CLOSED_IS_PRESENT
  22 
  23 # Do this if you want to use dbx or gdb
  24 # export SOURCEDEBUG=yes
  25 
  26 [ -n "$SRC" ] || {
  27   echo "SRC not set.  Run 'ws' or 'bldenv' first."
  28   exit 1
  29 }
  30 
  31 cpu=`uname -p`
  32 case $cpu in
  33 i386)
  34         x=intel
 
 169         find uts/common/rpcsvc -name '*.[ch]' -print |sort
 170         find uts/common/idmap -name '*.[ch]' -print |sort
 171         find head -name '*.h' -print |sort
 172         find lib/libidmap -name '*.[ch]' -print |sort
 173         find lib/libadutils -name '*.[ch]' -print |sort
 174         find lib/libldap5 -name '*.[ch]' -print |sort
 175         find cmd/idmap -name '*.[ch]' -print |sort
 176         ) > $SRC/cscope.files
 177 
 178         (cd $SRC ;
 179         exctags -e --langmap=c:+.ndl -h ndl -L - < cscope.files
 180         cscope -b )
 181 }
 182 
 183 ################################################################
 184 # This creates a tarfile one can use to update a test machine.
 185 
 186 do_tar() {
 187         git_rev=`git rev-parse --short=8 HEAD`
 188         files="
 189 kernel/misc/amd64/idmap
 190 lib/svc/manifest/system/idmap.xml
 191 usr/lib/idmapd
 192 usr/lib/libads.so.1
 193 usr/lib/$arch64/libads.so.1
 194 usr/lib/libadutils.so.1
 195 usr/lib/$arch64/libadutils.so.1
 196 usr/lib/libidmap.so.1
 197 usr/lib/$arch64/libidmap.so.1
 198 usr/lib/libldap.so.5
 199 usr/lib/$arch64/libldap.so.5
 200 usr/lib/nss_ad.so.1
 201 usr/lib/$arch64/nss_ad.so.1
 202 usr/bin/test-getdc
 203 usr/sbin/idmap
 204 usr/sbin/nltest
 205 "
 206 
 207         (cd $ROOT && tar cfj ../../idmap-${git_rev}.tar.bz2 $files)
 208 }
 209 
 
 |