summaryrefslogtreecommitdiff
path: root/scripts/check-hafas-urls
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-hafas-urls')
-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
+