summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-05-03 11:39:43 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-05-03 11:39:43 +0200
commit743bcabebef3ac9d77160a65c752a1fe775ded81 (patch)
tree9d6342fb6d38cccc603e41a878479ffff9aef1b4 /scripts
parent206edce6f2922a5938e85fc361b682abf5a202e4 (diff)
add check-hafas-urls helper script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-hafas-urls20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/check-hafas-urls b/scripts/check-hafas-urls
new file mode 100755
index 0000000..9c77e37
--- /dev/null
+++ b/scripts/check-hafas-urls
@@ -0,0 +1,20 @@
+#!/usr/bin/env zsh
+
+export PERL5LIB=lib
+
+checks="DB Berlin Jannowitzbrücke
+NAHSH Flensburg Solitüde
+NASA Wernigerode Hbf
+NVV Kassel Hbf
+ÖBB Wien Praterstern
+RSAG Rostock Hbf
+VBB Berlin Jannowitzbrücke
+VBN Diepholz"
+
+echo $checks | while read service stop; do
+ echo -n "${service} ... "
+ if bin/hafas-m -s $service $stop > /dev/null; then
+ echo OK
+ fi
+done
+