From 77977234ab2e44d66d15f844e22bbf990bbc2aae Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 10 Dec 1998 09:35:50 +0000 Subject: [PATCH] Script to generate authors files --- tools/make_authors | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 tools/make_authors diff --git a/tools/make_authors b/tools/make_authors new file mode 100755 index 00000000000..26536465c23 --- /dev/null +++ b/tools/make_authors @@ -0,0 +1,58 @@ +#! /usr/bin/perl +# +# Generate AUTHORS and include/authors.h +# +open(AUTHORS,"AUTHORS.new"); +while() + { + print NEWAUTHORS; + last if /^Wine is/; + } +while() + { + chop; + s/^and //; + s/[,.]$//; + push @authors, $_; + } + +# Sort them +sub cmpnames + { + @anames = split(" ",$a); + @bnames = split(" ",$b); + $ret = $anames[-1] cmp $bnames[-1]; + $ret = $anames[0] cmp $bnames[0] unless $ret; + return $ret; + } +@authors = sort cmpnames @authors; + +# Print authors +for ($i = 0; $i < $#authors; $i++) + { + print NEWAUTHORS "$authors[$i],\n"; + } +print NEWAUTHORS "and $authors[$#authors].\n"; +print "Created AUTHORS.new\n"; + +# Build authors.h file +open(NEWAUTHORS_H,">include/authors.h"); + +print NEWAUTHORS_H <