# Build the docs for this project
phpdoc -f trustcommerce.php -t $doc_path --template='responsive'
+echo -n $(date "$date_fmt"); echo " - Packing for export to package host"
+rm -f $local_checkout_base/*tar.gz
+rm -f $local_checkout_base/*zip
+cd $local_checkout_base
+tar czv --exclude-vcs -f $package_name.tar.gz $branch
+zip -r $package_name $branch -x "*/.git/*" "*/.gitignore"
+
+echo -n $(date "$date_fmt"); echo " - Pushing to packaging server"
+scp $package_name.zip $package_name.tar.gz $remote_user@$package_host:$package_path/
+
# Stop here if not updating a host
if [ -z $target_host ]; then
exit
echo -n $(date "$date_fmt"); echo " - Updating target path permissions"
ssh $remote_user@$target_host -t sudo $deploy_script
-echo -n $(date "$date_fmt"); echo " - Packing for export to package host"
-rm -f $local_checkout_base/*tar.gz
-rm -f $local_checkout_base/*zip
-cd $local_checkout_base
-tar czv --exclude-vcs -f $package_name.tar.gz $branch
-zip -r $package_name $branch -x "*/.git/*" "*/.gitignore"
-echo -n $(date "$date_fmt"); echo " - Pushing to packaging server"
-scp $package_name.zip $package_name.tar.gz $remote_user@$package_host:$package_path/