diff --git a/build-all-maclin.sh b/build-all-maclin.sh index 7eea71bc7b..dd1ab78a79 100755 --- a/build-all-maclin.sh +++ b/build-all-maclin.sh @@ -5,28 +5,19 @@ echo "Building nushell (nu) with --features=extra and all the plugins" echo "---------------------------------------------------------------" echo "" +NU_PLUGINS=( + 'nu_plugin_example' + 'nu_plugin_gstat' + 'nu_plugin_inc' + 'nu_plugin_query' +) + echo "Building nushell" cargo build --features=extra -echo "" - -cd crates/nu_plugin_example -echo "Building nu_plugin_example" -cargo build -echo "" - -cd ../../crates/nu_plugin_gstat -echo "Building nu_plugin_gstat" -cargo build -echo "" - -cd ../../crates/nu_plugin_inc -echo "Building nu_plugin_inc" -cargo build -echo "" - -cd ../../crates/nu_plugin_query -echo "Building nu_plugin_query" -cargo build -echo "" - -cd ../.. +for plugin in "${NU_PLUGINS[@]}" +do + echo '' && cd crates/$plugin + echo "Building $plugin..." + echo "-----------------------------" + cargo build && cd ../.. +done diff --git a/install-all.ps1 b/install-all.ps1 new file mode 100644 index 0000000000..17a84c876a --- /dev/null +++ b/install-all.ps1 @@ -0,0 +1,29 @@ + +# Usage: Just run `powershell install-all.ps1` in nushell root directory + +Write-Output "-----------------------------------------------------------------" +Write-Output "Installing nushell (nu) with --features=extra and all the plugins" +Write-Output "-----------------------------------------------------------------" +Write-Output "" + +Write-Output "Install nushell from local..." +Write-Output "----------------------------------------------" +cargo install --path . --features=extra + +$NU_PLUGINS=@( + 'nu_plugin_example', + 'nu_plugin_gstat', + 'nu_plugin_inc', + 'nu_plugin_query' +) + +foreach( $plugin in $NU_PLUGINS) { + Write-Output '' + Write-Output "----------------------------------------------" + Write-Output "Install plugin $plugin from local..." + Write-Output "----------------------------------------------" + Set-Location crates/$plugin + cargo install --path . + Set-Location ../../ +} + diff --git a/install-all-feats.sh b/install-all.sh similarity index 52% rename from install-all-feats.sh rename to install-all.sh index 226ab54612..e491f200fa 100644 --- a/install-all-feats.sh +++ b/install-all.sh @@ -1,5 +1,14 @@ #!/bin/sh +# Usage: Just run `sh install-all.sh` in nushell root directory + +echo "-----------------------------------------------------------------" +echo "Installing nushell (nu) with --features=extra and all the plugins" +echo "-----------------------------------------------------------------" +echo "" + +echo "Install nushell from local..." +echo "----------------------------------------------" cargo install --path . --features=extra NU_PLUGINS=( @@ -8,6 +17,7 @@ NU_PLUGINS=( 'nu_plugin_query' 'nu_plugin_example' ) + for plugin in "${NU_PLUGINS[@]}" do echo ''