2022-11-28 03:13:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-05-20 12:57:51 +00:00
|
|
|
|
2022-11-28 03:13:06 +00:00
|
|
|
set -euo pipefail
|
2022-03-04 22:17:33 +00:00
|
|
|
|
2023-05-20 12:57:51 +00:00
|
|
|
DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
|
|
|
|
REPO_ROOT=$(dirname $DIR)
|
|
|
|
|
2022-03-05 05:10:33 +00:00
|
|
|
echo "---------------------------------------------------------------"
|
2022-11-23 00:58:11 +00:00
|
|
|
echo "Building nushell (nu) with dataframes and all the plugins"
|
2022-03-05 05:10:33 +00:00
|
|
|
echo "---------------------------------------------------------------"
|
2022-03-04 22:17:33 +00:00
|
|
|
echo ""
|
|
|
|
|
2022-03-05 11:41:28 +00:00
|
|
|
NU_PLUGINS=(
|
|
|
|
'nu_plugin_example'
|
|
|
|
'nu_plugin_gstat'
|
|
|
|
'nu_plugin_inc'
|
|
|
|
'nu_plugin_query'
|
2022-08-11 14:40:35 +00:00
|
|
|
'nu_plugin_custom_values'
|
2022-03-05 11:41:28 +00:00
|
|
|
)
|
|
|
|
|
2022-03-05 05:10:33 +00:00
|
|
|
echo "Building nushell"
|
2023-05-20 12:57:51 +00:00
|
|
|
(
|
|
|
|
cd $REPO_ROOT
|
2023-08-21 17:42:42 +00:00
|
|
|
cargo build --features=dataframe,extra --locked
|
2023-05-20 12:57:51 +00:00
|
|
|
)
|
|
|
|
|
2022-03-05 11:41:28 +00:00
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
|
|
do
|
|
|
|
echo "Building $plugin..."
|
|
|
|
echo "-----------------------------"
|
2023-05-20 12:57:51 +00:00
|
|
|
(
|
|
|
|
cd "$REPO_ROOT/crates/$plugin"
|
|
|
|
cargo build
|
|
|
|
)
|
2022-03-05 11:41:28 +00:00
|
|
|
done
|