Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 822 Bytes
#!/bin/bash
git push origin master
if [ $? -ne 0 ]; then
echo "push failed; exiting"
exit $?
fi
jekyll build --config _config.yml,_htwconfigrz.yml
if [ $? -eq 0 ]; then
# locale charmap on server says US-ASCII, so not necessary for this server
# for f in $(find _site_htw_rz -name "*.html"); do iconv -f utf-8 -t ISO-8859-1 $f > temp.html && mv -f temp.html $f; done
scp -r _site_htw_rz/* kleinen@remserv.rz.htw-berlin.de:/home/user/K/kleinen/public_html
else
echo SITE BUILD FAILED, NOT COPYING TO HTW
fi
# if iconv fails, or gsub in HTMLProofer fails, check for invalid UTF-8
# with grep -axv '.*' *
# note: for the scp to work, there need to be ssh keys in place for kleinenweb
# and /home/kleinen/public_html and all files in it must belong to group kleinenweb
# and be writable for this group.