-
-
Save artmouse/55289eed625f6a667745ef7137498317 to your computer and use it in GitHub Desktop.
Generate modman file
This file contains hidden or 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
#!/bin/sh | |
# | |
# Generates magento modman file | |
# | |
# INSTALLATION: | |
# Save this file to /opt/deploy/tools/modman-generator.sh | |
# ln -s /opt/deploy/tools/modman-generator.sh /usr/local/bin/mg | |
# chmod a+x /usr/local/bin/mg | |
# | |
# USAGE: | |
# cd .modman/Your_Module | |
# mg | |
dir=$(pwd) | |
echo "Generating magento modman file in $dir" | |
if [ -f modman ] | |
then | |
rm modman | |
fi | |
find * -type f -not -iwholename 'modman' ! -name 'README*' ! -name 'composer*' -exec echo {} {} >> modman \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment