diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-05-02 10:47:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-05-02 10:47:29 +0200 |
commit | b940925279fb2a6d33716eefff1543276e19f25c (patch) | |
tree | 03efb64cf4c5442bd5d869f2045e041399c75a78 /scripts | |
parent | 68cdb0dbad49b64d23b0f3080cc761bdc65ec7e4 (diff) |
add check-efa-urls helper script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-efa-urls | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/check-efa-urls b/scripts/check-efa-urls new file mode 100755 index 0000000..f7b6b0e --- /dev/null +++ b/scripts/check-efa-urls @@ -0,0 +1,32 @@ +#!/usr/bin/env zsh + +export PERL5LIB=lib + +IFS=',' + +checks="BSVG,Braunschweig,Hbf,Volkmarode,Moorhüttenweg +DING,Ulm,Hbf,Ulm,Theodor-Heuss-Platz +KVV,Karlsruhe,Hbf,Karlsruhe,Tivoli +LinzAG,Linz,Hbf,Linz,Hart +MVV,München,Hackerbrücke,München,Seeholzenweg +NVBW,Stuttgart,Brendle (Großmarkt),Stuttgart,Schwabstraße +SVV,Salzburg,Hbf,Salzburg,Mirabellplatz +TLEM,London,Waterloo Underground Station,London,St Pancras Way +VAG,Schallstadt,Bf,Freiburg im Breisgau,Hbf +VBL,Luzern,Bf,Luzern,Brüggligasse +Verbundlinie,Graz,Hbf,Graz,Mariatrost +VGN,Nürnberg,Hbf,Nürnberg,Messe +VMV,Schwerin,Hbf,Schwerin,Dreescher Markt +VOR,Wien,Hbf,Wien,Praterstern +VRN,Mannheim,Hbf,Ludwigshafen (Rhein),Hbf +VRR,Essen,Hbf,Essen,Rüttenscheider Stern +VRR2,Essen,Hbf,Essen,Rüttenscheider Stern +VVO,Dresden,Hbf,Dresden,Altmarkt +VVS,Stuttgart,Brendle (Großmarkt),Stuttgart,Schwabstraße" + +echo $checks | while read service from_name from_place to_name to_place; do + echo -n "${service} ... " + if bin/efa -s $service $from_name $from_place $to_name $to_place > /dev/null; then + echo OK + fi +done |