#!/bin/sh
#
# Mksrc - make Pyramid DC/OSx and Reliant UNIX 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.4 99/06/22 08:10:19 abe Exp $


# Determine for which Pyramid dialect Configure has been called.

uname -s | grep Reliant > /dev/null
if test $? -eq 0
then
  OS="R"
else
  OS="D"
fi

D=dialects/pyramid
L="dfile.c dlsof.h dmnt.c dnode.c dnode1.c dnode2.c dnode3.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
