all repos — eureka @ 15cc1c55b519749daa4ec61f6322963c330d44c7

static site generator based on the 100r.co engine

deploy.sh (raw)

1
2
3
4
5
6
7
8
9
10
#!/bin/sh

DEST=$(grep "#define DEPLOY_DEST" config.h | awk '{print $3}' | sed -e 's/"//g')
IDENT=$(grep "#define DEPLOY_IDENT" config.h | awk '{print $3}' | sed -e 's/"//g')

if [ -z "$1" ]; then
  rsync -avK -e "ssh -i ~/.ssh/${IDENT}" --delete ../ ${DEST}
elif [ "$1" = "--resync" ]; then
  rsync -avk -e "ssh -i ~/.ssh/${IDENT}" --delete ${DEST} ../
fi