| 1 | #!/bin/sh |
| 2 | # |
| 3 | # Mksrc - make /dev/kmem-based HP-UX source files |
| 4 | # |
| 5 | # WARNING: This script assumes it is running from the main directory |
| 6 | # of the lsof, version 4 distribution. |
| 7 | # |
| 8 | # One environment variable applies: |
| 9 | # |
| 10 | # LSOF_MKC is the method for creating the source files. |
| 11 | # It defaults to "ln -s". A common alternative is "cp". |
| 12 | # |
| 13 | # $Id: Mksrc,v 1.3 99/04/27 15:54:00 abe Exp $ |
| 14 | |
| 15 | |
| 16 | D=dialects/hpux/kmem |
| 17 | L="dfile.c dlsof.h dmnt.c dnode.c dnode1.c dnode2.c dproc.c dproto.h dsock.c dstore.c machine.h" |
| 18 | |
| 19 | for i in $L |
| 20 | do |
| 21 | rm -f $i |
| 22 | $LSOF_MKC $D/$i $i |
| 23 | echo "$LSOF_MKC $D/$i $i" |
| 24 | done |