convert AUTHORS file to a shorter version (without the tasks done)
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 21 May 2004 17:25:32 +0000 (17:25 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 21 May 2004 17:25:32 +0000 (17:25 +0000)
for the about dialog

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10944 f5534014-38df-0310-8fa8-9805f1628bb7

Makefile.nmake
make-authors-short.pl [new file with mode: 0755]

index bf1d94a21731151359345af5b6c931d9add98ffe..acc81b15516030909e49b18230deccc51f7592b3 100644 (file)
@@ -1,7 +1,7 @@
 ## Makefile for building ethereal.exe with Microsoft C and nmake
 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
 #
-# $Id: Makefile.nmake,v 1.419 2004/05/14 16:23:38 ulfl Exp $
+# $Id: Makefile.nmake,v 1.420 2004/05/21 17:25:32 ulfl Exp $
 
 include config.nmake
 include <win32.mak>
@@ -220,6 +220,13 @@ ps.c       : rdps.exe print.ps
 cvsversion.h:
        $(PERL) make-version.pl
 
+#
+# Build the short version of the authors file for the about dialog
+#
+AUTHORS-SHORT: AUTHORS make-authors-short.pl
+       $(PERL) make-authors-short.pl < AUTHORS > AUTHORS-SHORT
+
+
 #
 # The header files listed here are built from x11-fields using Perl;
 # we declare a dependency here so that they get built.
@@ -276,7 +283,7 @@ clean: gtk2_distclean
                $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) dissectors.lib\
                editcap.obj mergecap.obj text2pcap.obj getopt.obj\
                text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
-               rdps.pdb config.h ps.c \
+               rdps.pdb config.h ps.c AUTHORS-SHORT \
                rdps.exe rdps.ilk dftest.obj dftest.exe randpkt.obj randpkt.ext \
                $(RESOURCES)
        cd wiretap
@@ -339,13 +346,13 @@ wiretap::
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
        cd ..
 
-gtk:: help config.h cvsversion.h
+gtk:: help config.h cvsversion.h AUTHORS-SHORT
        cd gtk
        $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
        cd ..
 
 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
-gtk2:: help config.h cvsversion.h
+gtk2:: help config.h cvsversion.h AUTHORS-SHORT
        if not exist gtk2.tmp mkdir gtk2.tmp
        cd gtk
        cp --update --preserve Makefile.* *.c *.h ..\gtk2.tmp
diff --git a/make-authors-short.pl b/make-authors-short.pl
new file mode 100755 (executable)
index 0000000..b4a47c3
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/perl -w
+
+# Remove tasks from individual author entries from AUTHORS file
+# for use in the about dialog.
+
+use strict;
+
+my $subinfo=0;
+
+while (<>) {
+       if (/(.*){/) {
+               $subinfo = 1;
+               print "$1\n";
+       } elsif (/}/) {
+               $subinfo = 0;
+       } elsif ($subinfo == 1) {
+               next;
+       } else {
+               print;
+       }
+}