Skip to content

Instantly share code, notes, and snippets.

@benosman
Created November 7, 2013 11:46
Show Gist options
  • Save benosman/7353340 to your computer and use it in GitHub Desktop.
Save benosman/7353340 to your computer and use it in GitHub Desktop.
Regexp convert make file to myrepos (mr) format
search=^projects\[([\w_]*)\]\[subdir\][\s=]*"([\w_]*)"\nprojects\[([\w_]*)\]\[version\][\s=]*"([\w\.\-]*)"
replace=[modules/$2/$1]\nproject = $1\nversion = 6.x-$4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment