summaryrefslogtreecommitdiff
path: root/scripts/check-hafas-urls
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-hafas-urls')
-rwxr-xr-xscripts/check-hafas-urls22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/check-hafas-urls b/scripts/check-hafas-urls
new file mode 100755
index 0000000..911faad
--- /dev/null
+++ b/scripts/check-hafas-urls
@@ -0,0 +1,22 @@
+#!/usr/bin/env zsh
+
+export PERL5LIB=lib
+
+checks="AVV Ponttor, AC
+BART San Francisco International Airport, San Mateo
+DB Berlin Jannowitzbrücke
+IE Dublin
+NAHSH Flensburg
+NASA Wernigerode Hbf
+NVV Kassel Hauptbahnhof
+ÖBB Wien Meidling
+VBB S+U Jannowitzbrücke (Berlin)
+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
+