Debian Codegraph @

wtools/rm-O

raw
1 #!/usr/local/bin/perl -i
2 #
3 # removes -O usersession data and big pointless keysets
4 # particularly good for dumps
5 #
6 # $Id: rm-O,v 1.1 1996/10/28 08:44:12 rd Exp $
7
8 while (<>) {
9 /^ -O / && next ;
10 /^-D -O / && next ;
11 s/-O \"19.*// ;
12 if (/^KeySet : \"new-19/ || /^KeySet : \"touched-19/ ||
13 /^KeySet : \"_lexh/ || /^KeySet : \"DoNotDump/) { $reject = 1 ; }
14 if (/^\s*$/) { undef $reject ;}
15 $reject && next ;
16 print ;
17 }
18