   `/usr/lib/daisy-pipeline/scripts`."
   (:require [clojure.java.shell :refer [sh]]
             [clojure.string :as s]))
+
+(def ^:private install-path "/usr/lib/daisy-pipeline/scripts")
 
 (defn continuation-line? [line]
   (cond

  "Invoke the audio encoder script."
  [{:keys [input output bitrate] :as args}]
  (apply sh "daisy-pipeline"
         "/usr/lib/daisy-pipeline/scripts/modify_improve/dtb/DTBAudioEncoder.taskScript"
         (map (fn [[k v]] (format "--%s=%s" (name k) v)) args)))

  seq on successful validation or a seq of error messages otherwise"
  [file]
  (-> (sh "daisy-pipeline"
          (str install-path "/verify/ConfigurableValidator.taskScript")
          (str "--validatorInputFile=" file)
          ;; make sure it has to be a DTBook file
          "--validatorRequireInputType=Dtbook document"
