forked from nushell/nushell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build and install scripts (nushell#4733)
* Update build and install scripts * Add build-all.nu and uninstall-all.sh
- Loading branch information
Showing
5 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
echo '-------------------------------------------------------------------' | ||
echo 'Building nushell (nu) with --features=extra and all the plugins' | ||
echo '-------------------------------------------------------------------' | ||
|
||
echo $'(char nl)Building nushell' | ||
echo '----------------------------' | ||
cargo build --features=extra | ||
|
||
let plugins = [ | ||
nu_plugin_inc, | ||
nu_plugin_gstat, | ||
nu_plugin_query, | ||
nu_plugin_example, | ||
] | ||
|
||
for plugin in $plugins { | ||
$'(char nl)Building ($plugin)' | ||
'----------------------------' | ||
cd $'crates/($plugin)' | ||
cargo build | ||
ignore | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
cargo install --path . --features=extra | ||
|
||
NU_PLUGINS=( | ||
'nu_plugin_inc' | ||
'nu_plugin_gstat' | ||
'nu_plugin_query' | ||
'nu_plugin_example' | ||
) | ||
for plugin in "${NU_PLUGINS[@]}" | ||
do | ||
echo '' | ||
echo "----------------------------------------------" | ||
echo "Install plugin $plugin from local..." | ||
echo "----------------------------------------------" | ||
cd crates/$plugin && cargo install --path . && cd ../../ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
echo '' | ||
echo "----------------------------------------------" | ||
echo "Uninstall nu and all plugins from cargo/bin..." | ||
echo "----------------------------------------------" | ||
|
||
NU_PLUGINS=( | ||
'nu_plugin_inc' | ||
'nu_plugin_gstat' | ||
'nu_plugin_query' | ||
'nu_plugin_example' | ||
) | ||
|
||
cargo uninstall nu | ||
for plugin in "${NU_PLUGINS[@]}" | ||
do | ||
cargo uninstall $plugin | ||
done |