#! sh

# Frontend for fd2inline.
# 

SOURCEDIR=$1
DESTDIR=$2

#
#

#	if [ -f $1/include/proto-src/$$rootname.h ]; then \
#		continue; \
#	fi; \
#	rootname=`basename $$fd .fd | sed "s:_lib$$::"`; \
#	echo "making /$$rootname.h..."; \
#	./fd2inline --proto --powerup $$fd -o $2/$$rootname.h; \

if [ -d $DESTDIR ]; then true; else mkdir $DESTDIR; fi
for fd in $SOURCEDIR/*.fd; do \
	rootname=`basename $fd _lib.fd`; \
	echo "making $rootname.h "; \
	../emultools/fd2inline/fd2inline --proto --powerup $fd -o $DESTDIR/$rootname.h; \
done







