Skip to content

Instantly share code, notes, and snippets.

@razbakov
Last active August 9, 2016 16:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save razbakov/e6f69419f0ec1eb816ac to your computer and use it in GitHub Desktop.
Save razbakov/e6f69419f0ec1eb816ac to your computer and use it in GitHub Desktop.
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