blob: e57642706d8b5e75ebfcab5219eb9f3369d0c81e [file] [log] [blame]
#!/bin/sh
#
# Mksrc - make Darwin /dev/kmem-based lsof source files
#
# WARNING: This script assumes it is running from the main directory
# of the lsof, version 4 distribution.
#
# One environment variable applies:
#
# LSOF_MKC is the method for creating the source files.
# It defaults to "ln -s". A common alternative is "cp".
#
# $Id: Mksrc,v 1.5 2006/03/27 23:24:50 abe Exp $
D=dialects/darwin/kmem
L="dlsof.h ddev.c dfile.c dmnt.c dnode.c dnode1.c dproc.c dproto.h dsock.c dstore.c machine.h"
for i in $L
do
rm -f $i
$LSOF_MKC $D/$i $i
echo "$LSOF_MKC $D/$i $i"
done