 (ns proto.main
   (:require [clojure.contrib.io :as io])
   (:require [clojure.contrib.generic.functor :as functor])
-  (:require [clj-yaml.core :as yaml]))
+  (:require [clj-yaml.core :as yaml])
+  (:require [clojure.contrib.shell :as shell]))
 
-(declare autotools-handler)
-
-(def handlers '(autotools-handler))
+(def handlers [repo-handler autotools-handler])
 
 
 (defn run-handlers
   "Run all the handlers on a definition"
   [config]
-  (map #(% config) handlers))
+  (for [h handlers] (h config)))
 
 
 (defn process-handlers

    subdir :subdir
    configurations :configurations
    autoconf-version :autoconf-version}]
  (when (= type "autotools") "print autotools"))



(defn init [& argv]

      io/reader
      slurp
      yaml/parse-string
      process-handlers
      println))


(defn -main []
  (init *command-line-args*))
