Skip to content

Instantly share code, notes, and snippets.

@smagch
Created October 2, 2012 17:04
Show Gist options
  • Select an option

  • Save smagch/3821202 to your computer and use it in GitHub Desktop.

Select an option

Save smagch/3821202 to your computer and use it in GitHub Desktop.
Static Generation Script for Github Pages
# I don't know about Windows
BUILD_TMP_PATH = /tmp/coderdojo-build-tmp
all:
# some build stuff
build: all
@wget -nH -r -P $(BUILD_TMP_PATH) http://localhost:3000
@rsync -avz ./public/* $(BUILD_TMP_PATH)
@make clean
@git checkout master
@rsync -avz $(BUILD_TMP_PATH)/* .
@rm -rf $(BUILD_TMP_PATH)
clean:
# some clean stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment