Skip to content

Instantly share code, notes, and snippets.

@linqing
Created April 21, 2012 06:13
Show Gist options
  • Save linqing/2434648 to your computer and use it in GitHub Desktop.
Save linqing/2434648 to your computer and use it in GitHub Desktop.
run all make files
#!/usr/bin/env clisp
(setf *bookpaths* '(
("platform/architecture" "book")
("platform/requirements" "book")
("zszj/userGuide/agents" "book")))
(setf *root* (namestring (cd)))
(defun make-books (paths)
(if (null paths)
'done
(let ((path (car (car paths)))
(file (nth 1 (car paths))))
(progn
(run-shell-command (concatenate 'string
"export DOC_PATH=" path ";"
"export FILE=" file ";"
"make install"))
(make-books (cdr paths))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment