aboutsummaryrefslogtreecommitdiffhomepage
path: root/bundle/init-backup.janet
blob: 03bb8edc7654989951ae6c69022c1572d31f0574 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(import ./test)
(import ./build :as b)
(import ./clean :as c)

(defn clean [&]
  (c/main))

(defn check [&]
  (test/main))

(defn build [&]
  (b/main))

(defn install [m &]
  (bundle/add-file m "src/tarray.h" "tarray.h")
  (bundle/add m "spork")
  (compwhen (dyn 'bundle/add-bin)
    (bundle/add-bin m "bin/janet-format")
    (bundle/add-bin m "bin/janet-netrepl"))
  (each file (os/dir "build/spork")
    (def f (string "build/spork/" file))
    (when (= (os/stat f :mode) :file)
      (bundle/add-file m f (string "spork/" file)))))