Skip to content

Instantly share code, notes, and snippets.

@robertbachmann
Created January 13, 2012 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertbachmann/1608251 to your computer and use it in GitHub Desktop.
Save robertbachmann/1608251 to your computer and use it in GitHub Desktop.
Conversion script for http://hg.microformats.org/
#!/bin/bash
## conversion script ##
echo '
BenjaminCarlyle=Benjamin Carlyle <benjamincarlyle~~soundadvice.id.au>
RobertBachmann=Robert Bachmann <rbachm~~gmail.com>
Robert Bachmann <rbach~~rbach.priv.at>=Robert Bachmann <rbachm~~gmail.com>
Ryan King http://theryanking.com/=Ryan King <ryan~~theryanking.com>
ryan~~AlBook.local=Ryan King <ryan~~theryanking.com>
ryan=Ryan King <ryan~~theryanking.com>
Robert Bachmann <http://rbach.priv.at/>=Robert Bachmann <rbachm~~gmail.com>
ryan king <ryan@theryanking.com>=Ryan King <ryan~~theryanking.com>
root~~microformats.org=Ryan King <ryan~~theryanking.com>
brian~~suda.lan=Brian Suda <brian~~suda.co.uk>
brian suda http://suda.co.uk/=Brian Suda <brian~~suda.co.uk>
unknown~~t-lva-suda-co-uk.local=Brian Suda <brian~~suda.co.uk>
Dan Connolly http://www.w3.org/People/Connolly/=Dan Connolly <dckc~~madmode.com>
connolly~~dirk.w3.org=Dan Connolly <dckc~~madmode.com>
Dan Connolly <connolly~~w3.org>=Dan Connolly <dckc~~madmode.com>' \
| sed -e 's/~~/@/g' > map.txt
git clone git://repo.or.cz/fast-export.git fast-export
hg clone http://hg.microformats.org/generators generators.hg
git init generators.git
cd generators.git
../fast-export/hg-fast-export.sh -r ../generators.hg -A ../map.txt
cd ..
hg clone http://hg.microformats.org/x2v x2v.hg
git init x2v.git
cd x2v.git
../fast-export/hg-fast-export.sh -r ../x2v.hg -A ../map.txt
cd ..
hg clone http://hg.microformats.org/tests tests.hg
git init tests.git
cd tests.git
../fast-export/hg-fast-export.sh -r ../tests.hg -A ../map.txt
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment