Browse files

update building

  • Loading branch information...
1 parent 1ec7b68 commit d8e536f97a6864856a87bab8a65916bb0572967a @azer committed Oct 20, 2012
Showing with 6 additions and 16 deletions.
  1. +3 −7 Makefile
  2. +1 −1 Rakefile
  3. +2 −8 update.sh
View
10 Makefile
@@ -1,11 +1,7 @@
-PROJECT_PATH=/home/azer/www/azer.kodfabrik.com/src
-TARGET_PATH=/home/azer/www/azer.kodfabrik.com/public
-
all:
+ echo `date`." - Building the site..." >> logs
jekyll
-deploy:
- cp -rf * /home/azer/www/azer.kodfabrik.com/src/.
-
-up:
+update:
+ echo `date`." - Fetching updates..." >> logs
rake social
View
2 Rakefile
@@ -41,7 +41,7 @@ task :social do
end
el['content']['---'] = "---\nprint-date: #{print_date}\nprevious-sibling: #{el['previousSibling']}\nnext-sibling: #{el['nextSibling']}"
- save("/home/azer/www/azer.kodfabrik.com/src/_posts/#{el['slug']}.markdown", el['content'])
+ save("./_posts/#{el['slug']}.markdown", el['content'])
end
end
View
10 update.sh
@@ -1,8 +1,2 @@
-PROJECT_PATH=/home/azer/www/azer.kodfabrik.com/src
-TARGET_PATH=/home/azer/www/azer.kodfabrik.com/public
-
-cd $PROJECT_PATH; \
- rake social
-cd $PROJECT_PATH & jekyll
-cd $PROJECT_PATH & cp -rf _site/* $TARGET_PATH/.
-cd $PROJECT_PATH & echo $(date)."Scheduled Build" >> $PROJECT_PATH/logs
+make update
+make

0 comments on commit d8e536f

Please sign in to comment.