Skip to content

Instantly share code, notes, and snippets.

@pedrambehroozi
Last active August 9, 2016 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pedrambehroozi/294c0ed23f1d8e2786e8 to your computer and use it in GitHub Desktop.
Save pedrambehroozi/294c0ed23f1d8e2786e8 to your computer and use it in GitHub Desktop.
modman file generator for Magento
#!/bin/sh
# usage: ./modman-generator module-dir-name
cd $1
echo "Generating magento modman file in $1"
rm -f modman
git ls-files | egrep -v '.svn|composer.json|modman|.gitignore|README|package.xml|.sass-cache|LICENSE.txt|readme.*' | awk -F'\t' '{print $1 " " $1}' >> modman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment