Create a gist now

Instantly share code, notes, and snippets.

@ottonet /makemod
Last active Dec 16, 2016

What would you like to do?
osx compatible magento modman generator
for i in `find . -type f | grep -v \.git | grep -v \.DS_Store | grep -v "^.$" | grep -v "modman" | grep -v "composer.json" | grep -v \.txt | grep -v \.pdf | sed 's/\.\///'`; do echo ${i} ${i}; done > modman
Owner

ottonet commented Nov 9, 2014

Auto generates a modman file (https://github.com/colinmollenhour/modman) for use with https://github.com/magento-hackathon/magento-composer-installer.

I use this to make non-github magento modules (like paid and closed source extensions) available for use with composer as well. I upload these to private repositories at bitbucket.

bluec commented Oct 2, 2015

Very useful snippet. To run from another directory you can chain it with a cd path/to/module && and then add parenthesis to run it inside a subshell and therefore return to original dir on completion:

(cd path/to/module/ && for i infind . -type f | grep -v .git | grep -v .DS_Store | grep -v "^.$" | grep -v "modman" | grep -v "composer.json" | grep -v .txt | grep -v .pdf | sed 's/.///'; do echo ${i} ${i}; done > modman ; )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment