diff --git a/build.sh b/build.sh index 40d84e6..fe22eec 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,11 @@ #!/bin/sh -if ! which jekyll 2>/dev/null 1>/dev/null; then +if ! which jekyll 2>/dev/null 1>/dev/null; then sudo gem install jekyll else - kill -9 $(ps ax | grep jekyll | grep -v grep | cut -d\ -f1) + pkill -f jekyll fi -cd site/ && jekyll serve & +cd site/ && jekyll serve --incremental & sleep 3 && open "http://localhost:4000/" - +cd .. diff --git a/site/.svnignore b/site/.svnignore index 0c3e5ab..5c91b60 100644 --- a/site/.svnignore +++ b/site/.svnignore @@ -1,2 +1,3 @@ _site/ .sass-cache/ +.jekyll-metadata diff --git a/stop.sh b/stop.sh new file mode 100755 index 0000000..4fe7d05 --- /dev/null +++ b/stop.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +if which jekyll 2>/dev/null 1>/dev/null; then + pkill -f jekyll +fi