-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbb.edn
37 lines (37 loc) · 2.11 KB
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{:deps {me.vedang.scripts/scripts {:local/root "."}}
:min-bb-version "0.6.4"
:tasks
{:requires ([babashka.fs :as fs]
[clojure.java.shell :as shell])
plain-text-tabs {:doc "Build the plain-text-tabs script and copy it into bin"
:task (do (fs/create-dirs "target")
(fs/create-dirs "bin")
(shell/sh "bb" "uberscript"
"target/bb-plain-text-tabs"
"-m" "me.vedang.scripts.tablist")
(shell/sh "chmod" "a+x"
"target/bb-plain-text-tabs")
(fs/copy "target/bb-plain-text-tabs" "bin/"
{:replace-existing true})
;;; Escaping in the sed command fails.
;;; Need to ask someone how to do this.
;; (shell/sh "gsed" "-i"
;; "'1s/^/#!\/usr\/bin\/env bb\n/'"
;; "bin/bb-plain-text-tabs")
)}
components {:doc "Build the components script and copy it into bin"
:task (do (fs/create-dirs "target")
(fs/create-dirs "bin")
(shell/sh "bb" "uberscript"
"target/bb-components"
"-m" "me.vedang.scripts.components")
(shell/sh "chmod" "a+x"
"target/bb-components")
(fs/copy "target/bb-components" "bin/"
{:replace-existing true})
;;; Escaping in the sed command fails.
;;; Need to ask someone how to do this.
;; (shell/sh "gsed" "-i"
;; "'1s/^/#!\/usr\/bin\/env bb\n/'"
;; "bin/bb-components")
)}}}