Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 537 Bytes
README_FILENAME=disqus/readme.txt
SCRIPT_FILENAME=disqus/disqus.php
PWD=`pwd`
VERSION=$(shell awk '/Version: (.+)$$/ {print $$2}' "${SCRIPT_FILENAME}")
OUT=$(shell mktemp -d -t disqus-wordpress.XXXXXX)
update:
git submodule foreach git pull origin master
zip: update
@echo "Generating package in $(OUT)"
cp -r disqus ${OUT}
ls ${OUT}
# $(sed "s/Stable tag: .+$$/Stable tag: ${VERSION}/" "${README_FILENAME}")
rm -f "${PWD}/disqus-wordpress-${VERSION}.zip"
zip -r "${PWD}/disqus-wordpress-${VERSION}.zip" disqus -x "*.git*"