#!/usr/bin/env sh # commit and push... git add .;git commit -m"$@";git push -u origin master echo "----------------------" echo "Rsync static assets..." echo "----------------------" rsync --super -avhr -e ssh ./css/*.css gmgauthier@socrates:/var/www/oldcomputernerd.com/css/ rsync --super -avhr -e ssh ./font/* gmgauthier@socrates:/var/www/oldcomputernerd.com/font/ rsync --super -avhr -e ssh ./img/* gmgauthier@socrates:/var/www/oldcomputernerd.com/img/ echo "-------------------" echo "Rsync content files" echo "-------------------" rsync --super -avhr -e ssh ./atari/* gmgauthier@socrates:/var/www/oldcomputernerd.com/atari/ rsync --super -avhr -e ssh ./mvs/* gmgauthier@socrates:/var/www/oldcomputernerd.com/mvs/ rsync --super -avhr -e ssh ./dos/* gmgauthier@socrates:/var/www/oldcomputernerd.com/dos/ rsync --super -avhr -e ssh ./linux/* gmgauthier@socrates:/var/www/oldcomputernerd.com/linux/ rsync --super -avhr -e ssh ./blog/* gmgauthier@socrates:/var/www/oldcomputernerd.com/blog/ echo "-------------------" echo "Rsync root files" echo "-------------------" rsync --super -avh -e ssh ./*.html gmgauthier@socrates:/var/www/oldcomputernerd.com rsync --super -avh -e ssh ./*.md gmgauthier@socrates:/var/www/oldcomputernerd.com