From ee9162c3bcb77ae5de43fb9ac2f603aaa830c2f2 Mon Sep 17 00:00:00 2001 From: Jerome Etienne Date: Thu, 7 Apr 2011 09:03:28 +0200 Subject: [PATCH] more work --- Makefile | 27 +++++++++++++++++++++++++++ src/jquery.qrcode.js | 2 -- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e69de29..bf5ea35 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,27 @@ +PROJECT_NAME=jquery-qrcode + +all: + + +build: minify homepage_build + +minify: + closurec --js src/jquery.qrcode.js --js_output_file jquery.qrcode.min.js + +homepage_build: + pandoc -A ~/.pandoc.header.html -s README.md -o index.html + sed -i "s/github.com\/you/github.com\/jeromeetienne\/$(PROJECT_NAME)/g" index.html + +################################################################################# +# deploy # +################################################################################# + +deploy: build deployGhPage + +deployGhPage: + rm -rf /tmp/$(PROJECT_NAME)GhPages + (cd /tmp && git clone git@github.com:jeromeetienne/$(PROJECT_NAME).git $(PROJECT_NAME)GhPages) + (cd /tmp/$(PROJECT_NAME)GhPages && git checkout gh-pages) + cp -a examples src Makefile README.md /tmp/$(PROJECT_NAME)GhPages + (cd /tmp/$(PROJECT_NAME)GhPages && git add . && git commit -a -m "Another deployement" && git push origin gh-pages) + #rm -rf /tmp/$(PROJECT_NAME)GhPages \ No newline at end of file diff --git a/src/jquery.qrcode.js b/src/jquery.qrcode.js index 1394bd6..d99e613 100644 --- a/src/jquery.qrcode.js +++ b/src/jquery.qrcode.js @@ -1,8 +1,6 @@ (function( $ ){ $.fn.qrcode = function(options) { - // <% console.log(""); %> - // if options is string, if( typeof options === 'string' ){ options = { text: options };