aboutsummaryrefslogblamecommitdiffstats
path: root/my-evolution/Location-translation-script
blob: 77c4ddba88c85d036dc313d09bda46584417ee27 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                               
#!/bin/bash

grep name Locations | cut -b 6- > Locations.h
grep loc Locations | sed "s/ .... ...... ...$//"| sed "s/ .... :...... ...$//" | cut -d = -f 2 | sed "s/\\\\//g" >> Locations.h

sed -e "s/^/N_(\"/" -e "s/$/\")/" Locations.h > Locations.h.tmp
sort Locations.h.tmp | uniq > Locations.h
rm Locations.h.tmp