[Checkins] SVN: groktoolkit/trunk/ add cronjob part, which is not installed by default. use the buildout "install" subcommand

Jan-Wijbrand Kolman janwijbrand at gmail.com
Mon Jan 17 07:04:17 EST 2011


Log message for revision 119622:
  add cronjob part, which is not installed by default. use the buildout "install" subcommand

Changed:
  U   groktoolkit/trunk/documentation.cfg
  U   groktoolkit/trunk/grok.cfg

-=-
Modified: groktoolkit/trunk/documentation.cfg
===================================================================
--- groktoolkit/trunk/documentation.cfg	2011-01-17 11:24:59 UTC (rev 119621)
+++ groktoolkit/trunk/documentation.cfg	2011-01-17 12:04:17 UTC (rev 119622)
@@ -30,3 +30,31 @@
 source = ${buildout:directory}/doc
 build = ${buildout:directory}/doc/_build
 interpreter = ${buildout:bin-directory}/sphinxpython
+
+[cronjob-template]
+recipe = collective.recipe.template
+document_root = /var/www/html/grok/doc/official
+inline =
+  #!/bin/bash
+  cd ${buildout:directory}
+  svn update
+
+  # `make clean` substitute
+  rm -rf build/*
+
+  # `make html` substitute
+  ./bin/generate_documentation
+
+  if [ $? == 0 ]; then
+      rm -rf ${:document_root}
+      cp -rf build/html ${:document_root}
+  else
+      echo "grokdocs html generation failed"
+  fi
+output = ${buildout:bin-directory}/build.sh
+mode = 755
+
+[cronjob]
+recipe = z3c.recipe.usercrontab
+times = 0 * * * *
+command = ${cronjob-template:output} > ${buildout:directory}/build.log 2>&1

Modified: groktoolkit/trunk/grok.cfg
===================================================================
--- groktoolkit/trunk/grok.cfg	2011-01-17 11:24:59 UTC (rev 119621)
+++ groktoolkit/trunk/grok.cfg	2011-01-17 12:04:17 UTC (rev 119622)
@@ -84,7 +84,7 @@
 buildout.dumppickedversions = 0.4
 collective.recipe.omelette = 0.10
 collective.recipe.scriptgen = 0.2
-collective.recipe.template = 1.4
+collective.recipe.template = 1.8
 simplejson = 2.0.9
 z3c.recipe.dev = 0.5.4
 z3c.recipe.eggbasket = 0.4.3



More information about the checkins mailing list