Files
heimdal/cf/make-aclocal
Assar Westerlund 51c1e8de48 id
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4222 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-21 08:31:42 +00:00

26 lines
353 B
Bash

#! /bin/sh
# $Id$
if [ "$#" -ne 2 ]; then
echo "Usage: `basename $0` proto-file output"
exit 1
fi
if rm -f "$2" ; then :; else
echo "Failed to remove $2"
exit 1
fi
d=`dirname $0`
for i in `cat "$1"`; do
if [ -f "$i" ]; then
cat "$i" >> "$2"
elif [ -f "$d/$i" ]; then
cat "$d/$i" >> "$2"
else
echo "$i: File not found"
exit 1
fi
done