1#!/bin/sh 2# 3# Mksrc -- make Darwin libproc-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 2005/11/06 12:50:09 abe Exp $ 14 15 16D=dialects/darwin/libproc 17L="dlsof.h ddev.c dfile.c dmnt.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