Skip to content

Instantly share code, notes, and snippets.

@lancepantz
Created September 30, 2010 22:49
Show Gist options
  • Save lancepantz/605466 to your computer and use it in GitHub Desktop.
Save lancepantz/605466 to your computer and use it in GitHub Desktop.
(defn base-file [& path]
(str (apply file "variants" "base_conf" path)))
(defile "variants/bare/conf/schema.xml" (base-schema))
(defile "variants/bare/conf/data-config.xml" (base-data-config))
(defile "variants/bare/conf/synonyms.txt" #{(base-file "synonyms.txt")}
(cp (base-file "synonyms.txt") *File*))
(defile "variants/bare/conf/elevate.xml" #{(base-file "elevate.txt")}
(cp (base-file "elevate.txt") *File*))
(defile "variants/bare/conf/mapping-ISOLatin1Accent.txt" #{(base-file "mapping-ISOLatin1Accent.txt")}
(cp (base-file "mapping-ISOLatin1Accent.txt") *File*))
(defile "variants/bare/conf/protwords.txt" #{(base-file "protwords.txt")}
(cp (base-file "protwords.txt") *File*))
(defile "variants/bare/conf/scripts.conf" #{(base-file "scripts.conf")}
(cp (base-file "scripts.conf") *File*))
(defile "variants/bare/conf/spellings.txt" #{(base-file "spellings.txt")}
(cp (base-file "spellings.txt") *File*))
(defile "variants/bare/conf/stopwords.txt" #{(base-file "stopwords.txt")}
(cp (base-file "stopwords.txt") *File*))
(deftask bare #{"variants/bare/conf/schema.xml"
"variants/bare/conf/data-config.xml"
"variants/bare/conf/elevate.xml"
"variants/bare/conf/mapping-ISOLatin1Accent.txt"
"variants/bare/conf/protwords.txt"
"variants/bare/conf/scripts.conf"
"variants/bare/conf/spellings.txt"
"variants/bare/conf/stopwords.txt"
"variants/bare/conf/synonyms.txt"}
(println "bare core generated"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment