forked from nushell/nushell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-all.nu
More file actions
41 lines (31 loc) · 958 Bytes
/
build-all.nu
File metadata and controls
41 lines (31 loc) · 958 Bytes
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
38
39
40
41
use std log warning
print '-------------------------------------------------------------------'
print 'Building nushell (nu) and all the plugins'
print '-------------------------------------------------------------------'
warning "./scripts/build-all.nu will be deprecated, please use the `toolkit build` command instead"
let repo_root = ($env.CURRENT_FILE | path dirname --num-levels 2)
def build-nushell [] {
print $'(char nl)Building nushell'
print '----------------------------'
cd $repo_root
cargo build --locked
}
def build-plugin [] {
let plugin = $in
print $'(char nl)Building ($plugin)'
print '----------------------------'
cd $'($repo_root)/crates/($plugin)'
cargo build
}
let plugins = [
nu_plugin_inc,
nu_plugin_gstat,
nu_plugin_query,
nu_plugin_example,
nu_plugin_custom_values,
nu_plugin_formats,
nu_plugin_polars
]
for plugin in $plugins {
$plugin | build-plugin
}