diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-02-03 21:08:39 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-02-03 21:08:39 +0000 |
commit | 08e66cde625de9052ac730e61761791a08017e91 (patch) | |
tree | 01e87124dfd79ef43c4acc5303b626ed36d0f383 /lib | |
parent | ff87056cc17d93e28bb8426854bc92ce53f71e24 (diff) |
Don't copy the include files in BuildHeaders, just #include them, that
was dependencies work properly
Cactus/219
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1355 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sbin/BuildHeaders.pl | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/lib/sbin/BuildHeaders.pl b/lib/sbin/BuildHeaders.pl index 701ca3d2..8275c7c5 100644 --- a/lib/sbin/BuildHeaders.pl +++ b/lib/sbin/BuildHeaders.pl @@ -30,11 +30,11 @@ sub BuildHeaders { foreach $inc_file (split(" ",$interface_database{"\U$thorn USES HEADER"})) { - $data{"$inc_file"} = "/* Include file $inc_file used by $thorn */\n"; + $data{"$inc_file"} = "/* Include file $inc_file used by $thorn */\n\n"; } } -# Add the my headers from thorns +# Add the headers from thorns foreach $thorn (split(" ",$interface_database{"THORNS"})) { @@ -53,23 +53,11 @@ sub BuildHeaders # Now have to find the include file and copy it if (-e "$cctk_home/arrangements/$arrangement/$thorn/src/$inc_file1") { - open(HEADER,"<$cctk_home/arrangements/$arrangement/$thorn/src/$inc_file1"); - while (<HEADER>) - { - $data{"$inc_file2"} .= $_; - } - $data{"$inc_file2"} .= "\n\n\n"; - close HEADER; + $data{"$inc_file2"} .= "#include \"$arrangement/$thorn/src/$inc_file1\"\n\n"; } elsif (-e "$cctk_home/arrangements/$arrangement/$thorn/src/include/$inc_file1") { - open(HEADER,"<$cctk_home/arrangements/$arrangement/$thorn/src/include/$inc_file1"); - while (<HEADER>) - { - $data{"$inc_file2"} .= $_; - } - $data{"$inc_file2"} .= "\n\n\n"; - close HEADER; + $data{"$inc_file2"} .= "#include \"$arrangement/$thorn/src/include/$inc_file1\"\n\n"; } else { |