Skip to content

Instantly share code, notes, and snippets.

@holtgrewe
Created February 22, 2015 12:55
Show Gist options
  • Save holtgrewe/bae94ddcd625e12cf8f8 to your computer and use it in GitHub Desktop.
Save holtgrewe/bae94ddcd625e12cf8f8 to your computer and use it in GitHub Desktop.
Importing LEMON library to GitHub.
#!/bin/bash
set -e
set -x
# Source Mercurial repository: http://lemon.cs.elte.hu/hg/lemon
# Target Github repository: https://github.com/seqan/lemon-mirror
# The following is based on the following Stack Overflow help post:
#
# http://stackoverflow.com/a/6917665/84349
mkdir make-lemon-mirror && cd make-lemon-mirror
virtualenv venv
. venv/bin/activate
hg clone http://lemon.cs.elte.hu/hg/lemon
mkdir lemon-mirror && cd lemon-mirror
git clone git://repo.or.cz/fast-export.git .
rm -rf .git .gitignore
git init
./hg-fast-export.sh -r ../lemon
git clean -f # remove fast-export files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment