diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2015-04-27 13:22:51 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2015-04-27 13:22:51 +0200 |
commit | 984e06dc262ac2a78ad18b8e307b1577cb2a7630 (patch) | |
tree | e34660843d9e2d398a8acc3ad265892476cc73c0 | |
parent | 09764f5e271ae64358c8f4f262735d7eb4922ee8 (diff) |
Normalize flags for version 2
-rwxr-xr-x | makecolumns.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/makecolumns.sh b/makecolumns.sh index 38c916e..8337b12 100755 --- a/makecolumns.sh +++ b/makecolumns.sh | |||
@@ -105,6 +105,7 @@ handle_format_version_1() { | |||
105 | mv 12_unknown 13_Rufnummer | 105 | mv 12_unknown 13_Rufnummer |
106 | mv 13_unknown 11_Ort | 106 | mv 13_unknown 11_Ort |
107 | mv 14_unknown 10_Postleitzahl | 107 | mv 14_unknown 10_Postleitzahl |
108 | |||
108 | } | 109 | } |
109 | 110 | ||
110 | 111 | ||
@@ -186,6 +187,8 @@ handle_format_version_2() { | |||
186 | [ -f 14_unknown ] && mv 14_unknown 14_Email | 187 | [ -f 14_unknown ] && mv 14_unknown 14_Email |
187 | [ -f 15_unknown ] && mv 15_unknown 15_Webadresse | 188 | [ -f 15_unknown ] && mv 15_unknown 15_Webadresse |
188 | 189 | ||
190 | sed -i '' -e s:^1$:00:g -e s:^3$:01:g -e s:^2$:02:g 01_Flags | ||
191 | |||
189 | # If street names come in an extra file, extract | 192 | # If street names come in an extra file, extract |
190 | # street names first | 193 | # street names first |
191 | streets=$1/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] | 194 | streets=$1/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] |