From bd0475ad0509d725646fa462097023219dda3b01 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 1 Oct 2005 16:26:34 +0000 Subject: [PATCH] nimm 2 --- die-ewigen-neinomaten | 3 +-- neinomat-projekte | 18 ------------------ neinomat-uebersichten | 19 +++++++++++++++++++ neinomat-vortraege | 18 ------------------ 4 files changed, 20 insertions(+), 38 deletions(-) delete mode 100755 neinomat-projekte create mode 100755 neinomat-uebersichten delete mode 100755 neinomat-vortraege diff --git a/die-ewigen-neinomaten b/die-ewigen-neinomaten index 2b0845d..64911d2 100755 --- a/die-ewigen-neinomaten +++ b/die-ewigen-neinomaten @@ -1,5 +1,4 @@ #!/bin/sh -./neinomat-vortraege $* -./neinomat-projekte $* +./neinomat-uebersichten $* ./neinomat-radio-chaotica $* ./neinomat-termine $* diff --git a/neinomat-projekte b/neinomat-projekte deleted file mode 100755 index 85d5ada..0000000 --- a/neinomat-projekte +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby -require 'mediawikibotchecker' - -if ARGV.size() != 2 - $stderr.print($0 + " \n") - exit(1) -end - -#---------------------------------------------------------------------------- - -b = WikiChecker.new("http://www.entropia.de/wiki/") -b.login(ARGV[0], ARGV[1]) - -page = "Projekte" -category = "Category:Projekte" -body = b.category_checker(page, category) - -b.edit("Benutzer:Neinomat/#{page}", body, "wiki ex machina") diff --git a/neinomat-uebersichten b/neinomat-uebersichten new file mode 100755 index 0000000..e57e09c --- /dev/null +++ b/neinomat-uebersichten @@ -0,0 +1,19 @@ +#!/usr/bin/env ruby +require 'mediawikibotchecker' + +if ARGV.size() != 2 + $stderr.print($0 + " \n") + exit(1) +end + +#---------------------------------------------------------------------------- + +def fasel (page, category) + b = WikiChecker.new("http://www.entropia.de/wiki/") + b.login(ARGV[0], ARGV[1]) + body = b.category_checker(page, category) + b.edit("Benutzer:Neinomat/#{page}", body, "wiki ex machina") +end + +fasel("Projekte","Kategorie:Projekte") +fasel("Übersicht über Vorträge", "Kategorie:Vorträge") diff --git a/neinomat-vortraege b/neinomat-vortraege deleted file mode 100755 index 0098061..0000000 --- a/neinomat-vortraege +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby -require 'mediawikibotchecker' - -if ARGV.size() != 2 - $stderr.print($0 + " \n") - exit(1) -end - -#---------------------------------------------------------------------------- - -b = WikiChecker.new("http://www.entropia.de/wiki/") -b.login(ARGV[0], ARGV[1]) - -page = "Übersicht über Vorträge" -category = "Kategorie:Vorträge" -body = b.category_checker(page, category) - -b.edit("Benutzer:Neinomat/#{page}", body, "wiki ex machina")