summaryrefslogtreecommitdiff
path: root/scripts/check-hafas-urls
blob: 41a80d4f04fcc996ae8bb05b5fa389547f89d1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env zsh

export PERL5LIB=lib

checks="AVV Ponttor, AC
BART San Francisco International Airport BART Station, San Francisco
BLS Bern
BVG 900003104
CMTA 6397
DB Berlin Jannowitzbrücke
IE Dublin
KVB 900000802
NAHSH Flensburg
NASA Wernigerode Hbf
NVV Kassel Hauptbahnhof
ÖBB Wien Meidling
RMV Mainz Hauptbahnhof
RSAG Rostock Hbf
SaarVV Saarbrücken Hbf
STV Graz
VBB S+U Jannowitzbrücke (Berlin)
VBN Diepholz
VMT Nordhausen
VOS Osnabrück Neumarkt
VRN Kaiserslautern Hbf"

echo $checks | while read service stop; do
        echo -n "${service} ... "
        if bin/hafas-m -s $service $stop > /dev/null; then
                echo OK
        fi
done