1#!/bin/sh
2#
3# Mksrc - make Darwin /dev/kmem-based lsof 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.5 2006/03/27 23:24:50 abe Exp $
14
15
16D=dialects/darwin/kmem
17L="dlsof.h ddev.c dfile.c dmnt.c dnode.c dnode1.c dproc.c dproto.h dsock.c dstore.c machine.h"
18
19for i in $L
20do
21  rm -f $i
22  $LSOF_MKC $D/$i $i
23  echo "$LSOF_MKC $D/$i $i"
24done
25