3 # Copyright (C) 2000-2003 Simon Huggins
4 # Sesame Street style brought to you "by the letter X and the number 1"
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by the Free
8 # Software Foundation; either version 2 of the License, or (at your option)
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc., 59
18 # Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # Outputs Sesame Street "Brought to you..." to tmpdir/S
21 # Therefore replaces @S... in sigs via merge.
26 my @found = scansigfile("S");
29 #srand( time() ^ ($$ + ($$ << 15) )); # Since 5.004 not required
31 open(OUT, ">$cfg{'tmpdir'}/S") or htagdie "$0: Could not open $cfg{'tmpdir'}/S: $!\n";
32 reg_deletion("$cfg{'tmpdir'}/S");
33 foreach my $f (@found) {
36 while ($recursion < 30) {
42 } elsif (length $attr <= $f[1]) {
43 print OUT chunksizealign($attr, $f[1], $f[2]),"\n";
47 if ($recursion != 255) {
48 htagdie "Recursed too much trying to find chunk <= $f[1].\nPerhaps your space isn't big enough.\n";
55 my $letter = ("A" .. "Z")[rand(26)];
56 my $number = rand(50)+1;
57 $number = " $number" if $number < 10;
58 return "the letter $letter and the number $number";