home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / ccs / lib / fur / mkproflog < prev    next >
Encoding:
Korn shell script  |  1998-08-19  |  1004 b   |  37 lines

  1. #!/usr/bin/ksh
  2.  
  3. # Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  4. #                                                                         
  5. #        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  6. #                   SANTA CRUZ OPERATION INC.                             
  7. #                                                                         
  8. #   The copyright notice above does not evidence any actual or intended   
  9. #   publication of such source code.                                      
  10.  
  11. #ident    "@(#)fur:common/cmd/fur/mkproflog.sh    1.1"
  12. while [ -n "$1" ]
  13. do
  14.     case "$1" in
  15.     -p)
  16.         shift
  17.         ;;
  18.     -*)
  19.         OPTS="$1 $OPTS"
  20.         ;;
  21.     *)
  22.         if [ -z "$NBLOCKS" ]
  23.         then
  24.             NBLOCKS="$1"
  25.         elif [ -z "$FILENAME" ]
  26.         then
  27.             FILENAME="$1"
  28.         else
  29.             NFUNCS="$1"
  30.         fi
  31.     esac
  32.     shift
  33. done
  34. FILEN=${FILENAME##*/}
  35. FILEN=${FILEN%%.*}
  36. cc -O -I/udk/usr/ccs/lib/fur -DProfCount=${FILEN}ProfCount $OPTS -DNFUNCS=$NFUNCS -c /udk/usr/ccs/lib/fur/proflog.c && mv proflog.o prof.$FILEN.o
  37.