aboutsummaryrefslogtreecommitdiff
path: root/src/output_source.c
diff options
context:
space:
mode:
authorschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-27 10:49:27 +0000
committerschnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f>2005-05-27 10:49:27 +0000
commitf7e4d7ae9de31669bcb700e02bba9e71c4c959e5 (patch)
tree6f9c455fca76e17a7750cb13b4b46616e0288f50 /src/output_source.c
parent3c42753983e5094afabe023e956ca30417e5d7df (diff)
Store the source tarballs into a subdirectory to remove clutter.
Restructure the announcing code so that there can be multiple announce targets. "Announce" to a file in the output directory by default. Also announce the list of active thorns and all parameter values. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@14 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/output_source.c')
-rw-r--r--src/output_source.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/output_source.c b/src/output_source.c
index db70022..d7529fc 100644
--- a/src/output_source.c
+++ b/src/output_source.c
@@ -38,16 +38,20 @@ Formaline_OutputSource ()
{ CCTK_PRINTSEPARATOR }
CCTK_VInfo (CCTK_THORNSTRING,
- "Writing tarballs with the Cactus sources into the directory \"%s\"", out_dir);
+ "Writing tarballs with the Cactus sources into the directory \"%s/%s\"",
+ out_dir, output_source_subdirectory);
- CCTK_CreateDirectory (0755, out_dir);
+ snprintf (filename, sizeof filename,
+ "%s/%s", out_dir, output_source_subdirectory);
+ CCTK_CreateDirectory (0755, filename);
/* Output all thorns' tarballs */
for (count = 0; count < cactus_source_length; ++ count)
{
snprintf (filename, sizeof filename,
- "%s/cactus-source-%s.tar.gz",
- out_dir, cactus_source[count]->thorn);
+ "%s/%s/Cactus-source-%s.tar.gz",
+ out_dir, output_source_subdirectory,
+ cactus_source[count]->thorn);
file = fopen (filename, "w");
assert (file);
fwrite (cactus_source[count]->data,
@@ -58,7 +62,8 @@ Formaline_OutputSource ()
}
/* Add a README */
- snprintf (filename, sizeof filename, "%s/README", out_dir);
+ snprintf (filename, sizeof filename,
+ "%s/%s/README", out_dir, output_source_subdirectory);
file = fopen (filename, "w");
assert (file);
fprintf (file,
@@ -68,8 +73,6 @@ Formaline_OutputSource ()
"(A tarball is a file with a suffix like \".tar.gz\".)\n"
"The tarballs were created by the thorn AEIThorns/Formaline when the\n"
"corresponding executable was produced, and were stored in the executable.\n"
-"The parameter file in this directory was used to extract the tarballs\n"
-"from the executable.\n"
"Thorn AEIThorns/Formaline contains more information about this feature.\n"
"\n"
"In order to fully recreate the Cactus source tree, unpack all tarballs\n"