~ubuntu-branches/ubuntu/oneiric/irssi/oneiric

« back to all changes in this revision

Viewing changes to findsyntax.pl

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-05 15:50:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505155050-aoqlnpes7che9rtd
Tags: 0.8.13-1ubuntu1
* Merge from debian unstable (LP: #372411), remaining changes:
  - debian/patches: 03firsttimer_text
    + Adapt it so it tells you about connecting to irc.ubuntu.com and
      joining #ubuntu instead of irc.debian.org and #debian.
  - debian/patches: 90irc-ubuntu-com
* Fixed debian/patches/90irc-ubuntu-com for new irssi.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/perl -w
2
 
 
3
 
while(<>) {
4
 
        if(m!/\*.SYNTAX\:! || $tt) {
5
 
                s/^\s+/ /;
6
 
                if (/^ [A-Z]+/) {
7
 
                        print "\n";
8
 
                        s/^ //;
9
 
                }
10
 
                if (m!\*/!) {
11
 
                        $tt=0;
12
 
                } else {
13
 
                        $tt=1;
14
 
                        chomp;
15
 
                }
16
 
                print;
17
 
        }
18
 
}