MODULE=fancybox cd .. # read actual version from module.json # old releases not needed anymore mkdir -p $MODULE/dist rm $MODULE/dist/* # create release for actual version zip -r9 $MODULE/dist/release.zip $MODULE/* -x $MODULE/dist/\* -x $MODULE/test/\* $MODULE/createrelease echo release/release.zip created. cd $MODULE