#!/usr/bin/perl # # dbstripextraheaders # Copyright (C) 1991-1998 by John Heidemann # $Id: dbstripextraheaders,v 1.14 2003/05/23 04:15:52 johnh Exp $ # # This program is distributed under terms of the GNU general # public license, version 2. See the file COPYING # in $dblibdir for details. # sub usage { print <getopt) { $ch = $dbopts->opt; if (0) { } else { &usage; }; }; $usage if ($#ARGV != -1); ($PRE_HEADER, $POST_HEADER) = 0..10; $state = $PRE_HEADER; while () { if ($state == $PRE_HEADER) { next if (!/^$headertag_regexp/); &process_header($_, $headertag); &write_header(); $state = $POST_HEADER; }; next if (/^$headertag_regexp/); &pass_comments && next; &split_cols; &write_cols; }; print "# | $prog ", join(" ", @orig_argv), "\n"; exit 0;