summaryrefslogtreecommitdiff
path: root/doc/make-authors-short.pl
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2009-06-21 12:47:48 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2009-06-21 12:47:48 +0000
commitc47eeae22b4edcebb6b58a5ef1a67b139473d203 (patch)
tree779fd228d4c61751c9f15f4c07cbe25078beff98 /doc/make-authors-short.pl
parent05a3dca2bc492be7443afc52fbff2bb9c182e705 (diff)
downloadwireshark-c47eeae22b4edcebb6b58a5ef1a67b139473d203.tar.gz
Move the generated documentation (man pages, AUTHORS-SHORT-FORMAT, and
AUTHORS-SHORT) into doc/. This cleans up the top-level Makefile.am (no more need to have rules for each man page in both files) and solves the parallel-build problem described in: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3494 svn path=/trunk/; revision=28784
Diffstat (limited to 'doc/make-authors-short.pl')
-rwxr-xr-xdoc/make-authors-short.pl31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/make-authors-short.pl b/doc/make-authors-short.pl
new file mode 100755
index 0000000000..ac96b0c264
--- /dev/null
+++ b/doc/make-authors-short.pl
@@ -0,0 +1,31 @@
+# $Id$
+
+# Remove tasks from individual author entries from AUTHORS file
+# for use in the about dialog.
+#
+# Must be called via perlnoutf.
+
+use strict;
+
+my $subinfo=0;
+my $nextline;
+
+$_ = <>;
+s/\xef\xbb\xbf//; # Skip UTF-8 byte order mark
+print unless /^\n/;
+
+while (<>) {
+ if (/(.*){/) {
+ $subinfo = 1;
+ print "$1\n";
+ } elsif (/}/) {
+ $subinfo = 0;
+ if (($nextline = <>) !~ /^[\s]*$/) {
+ print $nextline;
+ }
+ } elsif ($subinfo == 1) {
+ next;
+ } else {
+ print;
+ }
+}