]> hackdaworld.org Git - lectures/dfb-slides.git/commitdiff
snort
authorhunz <hunz>
Sat, 22 Mar 2003 00:44:22 +0000 (00:44 +0000)
committerhunz <hunz>
Sat, 22 Mar 2003 00:44:22 +0000 (00:44 +0000)
parse.pl [new file with mode: 0755]
wlan1/wlan1-content

diff --git a/parse.pl b/parse.pl
new file mode 100755 (executable)
index 0000000..2e923a5
--- /dev/null
+++ b/parse.pl
@@ -0,0 +1,54 @@
+#!/usr/bin/perl
+
+@content=<STDIN>;
+chomp @content;
+
+@slide=();
+
+print "<?xml version='1.0'?>\n";
+print "<slides effect=\"slide top left, blend\"
+        bgcolor=\"#000000\" fgcolor=\"#FFFFFF\" 
+        face=\"../ttf/decker.ttf\" size=\"15\"
+        bgimage=\"../img/bg.png\"
+        bullet=\"../img/bullet.png\"
+        screen_width=\"1024\" screen_height=\"768\">\n";
+
+push(@content," 23");
+
+foreach(@content) {
+       s/\#.*//;
+       s/&/&amp;/g;
+       s/</&lt;/;
+       s/>/&gt;/;
+       # unterpunkt
+       if(/^ \d/) {
+               if(@slide) {
+                       print "<slide>\n";
+                       pop(@slide);
+                       print "<header size=\"20\">$topic</header>\n<text></text>\n";
+                       foreach(@slide) {
+                               if(/ \+ /) {
+                                       s/\+//;
+                                       print "<listitem size=\"20\">$_</listitem>\n";
+                               }
+                               else {
+                                       print "<text>$_</text>\n";
+                               }
+                       }
+                       print "</slide>\n\n";
+               }
+               @slide=();
+               #push(@slide,$_);
+               $topic=$_;
+       }
+       # ueberpunkt
+       elsif (/^\d/) {
+               #$topic=$_;
+       }
+       # normaler content
+       else {
+               push(@slide,$_);
+       }
+}
+
+print "</slides>\n";
\ No newline at end of file
index 3a6aa9a7c18eb124e431adc4bcec22ba3bf3249b..f41f39c9efe868330a8a2ccc3ee8ba03b077c207 100644 (file)
      aus driver/orinoco-0.13b-hermesap-0.1a/ *.c *.h ins wireless dir von pcmcia-cs kopieren
      pcmcia-cs wie oben compilen
    + AP firmware extrahieren und laden:
-     im firmware dir ./hfwget.sh ausfΓΌhren
+     im firmware dir ./hfwget.sh ausfuehren
      dann firmware mit hfw/hfwload ethX firmware/T108580.hfw laden
    + config:
      ssid / wepkeys / channel setzen wie oben