Permalink
Browse files

Moved the generic clean task to the modules/tasks sub-folder.

  • Loading branch information...
1 parent 329c754 commit 84ec8834cf15f8db89040ede35036c54b2224f18 @tmpfs committed Dec 26, 2012
Showing with 9 additions and 7 deletions.
  1. +1 −1 AUTHORS
  2. +1 −0 lib/modules/require
  3. +3 −0 lib/modules/tasks/clean
  4. +4 −6 tasks
View
@@ -1,3 +1,3 @@
# This is a list of people who have contributed code or ideas to strike
-muji <http://github.com/freeformsystems>
+muji <http://github.com/freeformsystems>
View
@@ -91,6 +91,7 @@ function __require_load {
if [ -f "$abs" ] && [ -r "$abs" ]; then
#method_start_diff;
+ name=`basename $abs`;
__require_source "$abs";
#method_end_diff;
#declared=( "$_result[@]" );
View
@@ -0,0 +1,3 @@
+function tasks.clean {
+ rmdir "${target}";
+}
View
10 tasks
@@ -1,13 +1,11 @@
require 'executable';
+require 'tasks/clean';
+
function tasks.initialize {
executable validate 'ronn' 'git';
}
-function tasks.clean {
- rmdir "${target}";
-}
-
function tasks.doc {
local ronn="${executables[ronn]}";
local git="${executables[git]}";
@@ -18,11 +16,11 @@ function tasks.doc {
local cmd="cp "${root}/doc/*.ronn" "${man}"";
eval "$cmd";
- $ronn -w -s toc -r5 --markdown ${man}/*.ronn
-
# switch out to the develop page
$git checkout gh-pages > /dev/null 2>&1 || quit 1 "could not checkout gh-pages branch, may be dirty";
+ $ronn -w -s toc -r5 --markdown ${man}/*.ronn
+
# copy over the temporary man pages
cmd="cp "${man}/*" "${root}"";
eval "$cmd" \

0 comments on commit 84ec883

Please sign in to comment.