Last active
April 12, 2023 14:57
-
-
Save ottonet/2841937ac4716578673a to your computer and use it in GitHub Desktop.
osx compatible magento modman generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
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.