Skip to content

Instantly share code, notes, and snippets.

@ottonet
Last active April 12, 2023 14:57
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ottonet/2841937ac4716578673a to your computer and use it in GitHub Desktop.
Save ottonet/2841937ac4716578673a to your computer and use it in GitHub Desktop.
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
@ottonet
Copy link
Author

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
Copy link

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 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 ; )

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