Code for building our family photo gallery using Sigal.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
606 B

.PHONY: photos html sync
default: photos html ;
sigal build
find _html -mindepth 1 -type d -exec rm -rf {} +
rsync -av _build/static _html
(cd _build && find . -iname '*.html' -print0) | rsync -av --files-from=- --from0 _build/ _html/
scripts/cdn-links _html
cd _html && git add --all && git commit -m 'Automatic publish to GitHub (Makefile)' && git push
s3cmd sync --progress --no-preserve --acl-public --delete-removed --delete-after --exclude='static/*' --exclude='*.html' --guess-mime-type _build/ s3://media-thepences-org/photos/