#!/bin/bash # Creates a zip file that contains the plugin and saves it at /tmp/altapay_for_woocommerce.zip DEST="/tmp/altapay" #Clean up the old files or archives rm -rf $DEST rm -f $DEST_for_woocommerce.zip #Create the directory where all the files and directories will be copied mkdir $DEST #Copy all the files and directories, except the ones defined in the list rsync -avz --progress --exclude-from='buildExcludeList.txt' $PWD/ $DEST #Create the zip archive, which will hold all the plug-in files cd /tmp zip -r altapay_for_woocommerce.zip altapay