#!/bin/sh

# Frontend for add_struct_decl.pl
#
# Usage: add_struct_decl.sh source_dir/clib dest_dir/clib

SOURCEDIR=$1
DESTDIR=$2

echo $SOURCEDIR
echo $DESTDIR

(cd $SOURCEDIR; find . -iname \*.h -printf "perl add_struct_decl.pl >$DESTDIR/%p $SOURCEDIR/%p\n") | sh

