3 # An example hook script to prepare a packed repository for use over
6 # To enable this hook, rename this file to "post-update".
8 local_checkout=/home/git/local/checkouts/fsf-giving-guide
15 echo "use the 'master' branch to update the gift giving site."
22 echo Deploying to fsf.org...
25 echo Updating local checkout...
29 # copy the v8 etc dirs.
30 # note, the -f arg is a trick documented in the rsync man page
31 rsync -vazm --delete --include='/v[[:digit:]]/***' --include='/v[[:digit:]][[:digit:]]/***' \
32 -f 'hide,! */' /home/git/local/checkouts/fsf-giving-guide/ vcshookuser@fsf.org:/var/www/fsf-giving-guide
33 echo Fixing permissions on webserver...
34 ssh vcshookuser@fsf.org chmod -R ug=rwX,o=rX /var/www/fsf-giving-guide
35 exec git update-server-info