summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2009-01-27 21:15:53 +0000
committerknarf <knarf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2009-01-27 21:15:53 +0000
commit7c990a67cd13dcc3ec48ce5916bbb9cb3c67bb62 (patch)
tree2ce08a6309256456baf85baeb8e0dd9b7ba02c1f
parentf37b227a8a432fd66b4c94dd60bbc0017eebbd9d (diff)
use new unified README format for 'make newthorn'
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4526 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rwxr-xr-xlib/make/new_thorn.pl25
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/make/new_thorn.pl b/lib/make/new_thorn.pl
index f56397c5..29cfbd71 100755
--- a/lib/make/new_thorn.pl
+++ b/lib/make/new_thorn.pl
@@ -41,10 +41,11 @@ if(!$package)
do {
push @author_names, &prompt("Thorn Author Name");
- push @author_emails, &prompt("Email Address");
+ push @author_emails, &prompt("Email Address ('none' for none)");
$another_author = &prompt("Add another author? Y/N");
} while ($another_author =~ /^y/i);
+$licence = &prompt("Licence");
chdir $package_dir;
@@ -98,27 +99,33 @@ close OUT;
open(OUT, ">README") || die "Cannot create README";
-print OUT "CVS info : \$" . "Header:\$\n\n";
print OUT "Cactus Code Thorn $thorn_name\n";
-print OUT "Thorn Author(s) : ";
+print OUT "Author(s) : ";
for ($i = 0; $i < (@author_names); $i++) {
if ($i ne 0) {
print OUT "\n : ";
}
- print OUT "$author_names[$i] <$author_emails[$i]>";
+ if ($author_emails[$i] ne "none") {
+ print OUT "$author_names[$i] <$author_emails[$i]>";
+ } else {
+ print OUT "$author_names[$i]";
+ }
}
-print OUT "\nThorn Maintainer(s) : ";
+print OUT "\nMaintainer(s): ";
for ($i = 0; $i < (@author_names); $i++) {
if ($i ne 0) {
print OUT "\n : ";
}
- print OUT "$author_names[$i] <$author_emails[$i]>";
+ if ($author_emails[$i] ne "none") {
+ print OUT "$author_names[$i] <$author_emails[$i]>";
+ } else {
+ print OUT "$author_names[$i]";
+ }
}
-print OUT "\n";
+print OUT "\nLicence : $licence\n";
print OUT "--------------------------------------------------------------------------\n";
print OUT "\n";
-print OUT "Purpose of the thorn:\n";
-print OUT "\n";
+print OUT "1. Purpose\n\nnot documented\n";
close OUT;