split of aclocal/acinclude
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4191 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
24
cf/make-aclocal
Normal file
24
cf/make-aclocal
Normal file
@@ -0,0 +1,24 @@
|
||||
#! /bin/sh
|
||||
|
||||
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
|
Reference in New Issue
Block a user