The pyrocko.org website.
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.
 
 
 
 

17 lines
347 B

#!/bin/bash
set -e
if [ ! -f deploy-website.sh ] ; then
echo "must be run from main directory!"
exit 1
fi
make clean; make html
read -r -p "Are your sure to update live http://pyrocko.org [y/N]?" resp
case $resp in
[yY][eE][sS]|[yY] )
scp -r build/html/* pyrocko@hive:/var/www/pyrocko.org;
;;
* )
;;
esac