-
Notifications
You must be signed in to change notification settings - Fork 0
/
nbg-subway
executable file
·120 lines (96 loc) · 2.29 KB
/
nbg-subway
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
#
# Script to create a map of the Nuremberg Subway via git
# view the map with gitk, gitg, ...
#
# Author: J. Daniel Schmidt, 2012
# Licence: GPL-2.0
#
targetdir=nbg-subway-map
rm -rf $targetdir
mkdir $targetdir
cd $targetdir
git init
function startstart()
{
git symbolic-ref HEAD refs/heads/$1
}
function mkstart()
{
git checkout --orphan $1
}
function mkstation()
{
git checkout "$1"
git commit --allow-empty -m "$3: $2"
git tag "$2"
sleep 1
}
function mergestations()
{
git checkout "$1"
git merge -s ours -m "$4 $3" "$1" "$2"
git tag "$3"
git checkout "$2"
git merge "$1"
sleep 1
}
function follow()
{
git checkout "$2"
git merge "$1"
}
#main
startstart U1
mkstation U1 "Hardhöhe" U1
mkstation U1 "Klinikum" U1
mkstation U1 "Stadthalle" U1
mkstation U1 "Rathaus" U1
mkstation U1 "Jakobinenstraße" U1
mkstation U1 "Stadtgrenze" U1
mkstation U1 "Muggenhof" U1
mkstart U2
mkstation U2 "Röthenbach" U2
mkstation U1 "Eberhardshof" U1
mkstation U2 "Hohe_Marter" U2
mkstation U1 "Maximilianstraße" U1
mkstation U2 "Schweinau" U2
mkstart U3
mkstation U3 "Gustav-Adolf-Straße" U3
mkstation U1 "Bärenschanze" U1
mkstation U2 "St._Leonhard" U2
mkstation U3 "Sündersbühl" U3
mergestations U2 U3 "Rothenburger_Straße" "U2 U3"
mkstation U1 "Gostenhof" U1
mergestations U2 U1 "Plärrer" "U1 U2 U3"
follow U2 U3
mkstation U1 "Weißer_Turm" U1
mkstation U2 "Opernhaus" "U2 U3"
follow U2 U3
mkstation U1 "Lorenzkirche" U1
mergestations U2 U1 "Hauptbahnhof" "U1 U2 U3"
follow U2 U3
mkstation U1 "Aufseßplatz" U1
mkstation U2 "Wöhrer_Wiese" "U2 U3"
follow U2 U3
mkstation U1 "Maffeiplatz" U1
mkstation U2 "Rathenauplatz" "U2 U3"
follow U2 U3
mkstation U1 "Frankenstraße" U1
mkstation U2 "Rennweg" U2
mkstation U3 "Maxfeld" U3
mkstation U1 "Hasenbuck" U1
mkstation U2 "Schoppershof" U2
mkstation U3 "Kaulbach_Platz" U3
mkstation U1 "Bauernfeindstraße" U1
mkstation U2 "Nordostbahnhof" U2
mkstation U3 "Friedrich-Döner-Platz" U3
mkstation U1 "Messe" U1
mkstation U2 "Herrenhütte" U2
mkstation U1 "Langwasser_Nord" U1
mkstation U2 "Ziegelstein" U2
mkstation U1 "Scharfreiterring" U1
mkstation U2 "Flughafen" U2
mkstation U1 "Langwasser_Mitte" U1
mkstation U1 "Gemeinschaftshaus" U1
mkstation U1 "Langwasser_Süd" U1