summaryrefslogtreecommitdiff
path: root/lib/sbin/CreateImplementationBindings.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbin/CreateImplementationBindings.pl')
-rw-r--r--lib/sbin/CreateImplementationBindings.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/sbin/CreateImplementationBindings.pl b/lib/sbin/CreateImplementationBindings.pl
index 474e0858..64c45cad 100644
--- a/lib/sbin/CreateImplementationBindings.pl
+++ b/lib/sbin/CreateImplementationBindings.pl
@@ -37,6 +37,21 @@ sub CreateImplementationBindings
}
@thorns = sort split(' ', $rhinterface_db->{'THORNS'});
+ if(! -d 'include')
+ {
+ mkdir('include', 0755) || die 'Unable to create include directory';
+ }
+ if(! -d 'include/CactusBindings')
+ {
+ mkdir('include/CactusBindings', 0755) || die 'Unable to create include/CactusBindings directory';
+ }
+ my $thorn;
+ foreach $thorn (@thorns) {
+ if(! -d "include/$thorns") {
+ mkdir("include/$thorn",0755) || die "Unable to create include/$thorn directory";
+ }
+ }
+
@data = map { "void CCTKi_BindingsThorn_$_(void);" } @thorns;
push(@data, '');