summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-14 09:00:32 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-14 09:00:32 +0100
commit02a6ff2e0d21b44f33b8ddd5ec50cf1555383ecc (patch)
tree8d011009af7747a525096a5f8af06a2457bddb58
parent236ea9f8f172c4f0e970c17c051ed2dbdcde9f1d (diff)
downloadliw-automation-02a6ff2e0d21b44f33b8ddd5ec50cf1555383ecc.tar.gz
Remove broken journal scripts
-rwxr-xr-xscripts/missing-journal-person-create28
-rwxr-xr-xscripts/missing-journal-tag-create20
2 files changed, 0 insertions, 48 deletions
diff --git a/scripts/missing-journal-person-create b/scripts/missing-journal-person-create
deleted file mode 100755
index abbdea3..0000000
--- a/scripts/missing-journal-person-create
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-open(INPUT, "<", "/home/liw/Journal/html/index.html");
-while (<INPUT>) {
- if (/^<li><span class="createlink">.*page=people%2F([^&]*).*\n$/) {
- s//$1/;
- my $basename = $_;
- my @names = split /\./, $_;
- my @Names = map ucfirst, @names;
- my $family = shift @Names;
- my $given = join ' ', @Names;
- my $realname = "$family, $given";
- my $pathname = "/home/liw/Journal/src/people/$basename.mdwn";
- if (!-e $pathname) {
- print "$realname\n";
- open(OUTPUT, ">", $pathname);
- print OUTPUT "[[!meta title=\"$realname\"]]\n\n";
- print OUTPUT "[[!inline feeds=no ";
- print OUTPUT "pages=\"notes/* and !notes/*/* and ";
- print OUTPUT "link(people/$basename)\"]]\n";
- close(OUTPUT);
- }
- }
-}
-
diff --git a/scripts/missing-journal-tag-create b/scripts/missing-journal-tag-create
deleted file mode 100755
index 62dda5a..0000000
--- a/scripts/missing-journal-tag-create
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-open(INPUT, "<", "/home/liw/Journal/html/index.html");
-while (<INPUT>) {
- if (/^<li><span class="createlink">.*page=%2Ftag%2F([^&]*)&amp;from=notes%2F.*\n$/) {
- s//$1/;
- my $tag = $_;
- my $pathname = "/home/liw/Journal/src/tag/$tag.mdwn";
- if (!-e $pathname) {
- print "$tag\n";
- open(OUTPUT, ">", $pathname);
- print OUTPUT "[[!inline archive=yes pages=\"link(tag/$tag)\"]]\n";
- close(OUTPUT);
- }
- }
-}
-