Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generate modman file
#!/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
You can’t perform that action at this time.