summaryrefslogtreecommitdiff
path: root/lib/make
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-30 21:31:12 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-05-30 21:31:12 +0000
commit47dad8acc64ae28d6f74e80e4ad3204312b08556 (patch)
treeecb528da05ba8c9c03fe93302e42b935f3079ca2 /lib/make
parent8601d0148ad2fb692aaee1dccb0aeb22995b4f87 (diff)
From Ian Kelley,
Copy the template for thorn documentation into the appropriate place git-svn-id: http://svn.cactuscode.org/flesh/trunk@2875 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rwxr-xr-xlib/make/new_thorn.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/make/new_thorn.pl b/lib/make/new_thorn.pl
index 2c385a12..f749d195 100755
--- a/lib/make/new_thorn.pl
+++ b/lib/make/new_thorn.pl
@@ -9,6 +9,11 @@
# @version $Id$
#@@*/
+my $cctk_home = `pwd`;
+chomp ($cctk_home);
+
+my $documentation_inputfile = "$cctk_home/doc/ThornGuide/template.tex";
+
$package_dir = "arrangements";
$thorn_name = shift(@ARGV);
@@ -110,7 +115,11 @@ print OUT "\n";
close OUT;
-print "All done. Please remember to fill out the README.\n";
+my $documentation_outputfile = "$cctk_home/$package_dir/$package/$thorn_name/doc/documentation.tex";
+
+system("cp $documentation_inputfile $documentation_outputfile");
+
+print "All done. Please remember to fill out the README and doc/documenation.tex files.\n";
exit;
@@ -188,6 +197,7 @@ sub GetToolkits
local(@arrangements);
$start_dir = `pwd`;
+ chomp($start_dir);
chdir $package_dir;