From a9f69f8cd35ef2d1aaf6b8181a5b3fd1fe34b5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20P=C3=A9rex?= Date: Fri, 27 Jun 2025 02:36:25 +0100 Subject: [PATCH] chore: add main scripts --- build-all.sh | 14 ++++++++++++++ collect-install.sh | 7 +++++++ make_plugin.sh | 1 + 3 files changed, 22 insertions(+) create mode 100755 build-all.sh create mode 100755 collect-install.sh create mode 100755 make_plugin.sh diff --git a/build-all.sh b/build-all.sh new file mode 100755 index 0000000..747130d --- /dev/null +++ b/build-all.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +for plgn in nu_plugin_* +do + cd $plgn + echo "Build $plgn ..." + if cargo build -r ; then + echo "Created $plgn ..." + else + echo "Error in $plgn !!" + fi + echo "---" + cd .. +done + diff --git a/collect-install.sh b/collect-install.sh new file mode 100755 index 0000000..44d77be --- /dev/null +++ b/collect-install.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +TARGET_PATH=distribution + +cd $TARGET_PATH +./collect.sh +cp -pv nu_plugin* /usr/local/bin + diff --git a/make_plugin.sh b/make_plugin.sh new file mode 100755 index 0000000..47e0521 --- /dev/null +++ b/make_plugin.sh @@ -0,0 +1 @@ +cargo generate --force --path generate/nu_plugin_template