summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-05 22:35:05 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-05 22:35:05 +0800
commit27f6414ad1ff451feb0044af62f37dc2a6255ffa (patch)
treecb5693bc014cc8579dcf02a730fd4d2a5dfcf1a5 /scripts
parentade2fcb9302a4ab759795820dbde3b2b269490ee (diff)
Remove examples and legacy code, update .gitignore
- Delete examples directory and its example action system - Rename actions/ to legacy_actions/ and data/ to legacy_data/ - Update Cargo.toml license file reference - Move setup scripts to scripts/dev/ directory - Add todo.txt patterns to .gitignore
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev/setup.ps122
-rw-r--r--scripts/dev/setup.sh12
2 files changed, 34 insertions, 0 deletions
diff --git a/scripts/dev/setup.ps1 b/scripts/dev/setup.ps1
new file mode 100644
index 0000000..cdea5f9
--- /dev/null
+++ b/scripts/dev/setup.ps1
@@ -0,0 +1,22 @@
+# Set location to script directory
+$scriptPath = $MyInvocation.MyCommand.Path
+$scriptDir = Split-Path $scriptPath -Parent
+Set-Location (Join-Path $scriptDir "..\..")
+
+# Setup documents repo
+if (Test-Path "docs/Documents/.git") {
+ Push-Location "docs/Documents"
+ git fetch origin main
+ git reset --hard origin/main
+ Pop-Location
+} else {
+ git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents
+}
+
+# Hide .cargo, .github and .temp directories before build
+if (Test-Path .cargo) {
+ attrib +h .cargo
+}
+if (Test-Path .temp) {
+ attrib +h .temp
+}
diff --git a/scripts/dev/setup.sh b/scripts/dev/setup.sh
new file mode 100644
index 0000000..5c7973e
--- /dev/null
+++ b/scripts/dev/setup.sh
@@ -0,0 +1,12 @@
+# Change to the directory where the script is located
+cd "$(dirname "$0")/../../" || exit 1
+
+# Setup documents repo
+if [ -d "docs/Documents/.git" ]; then
+ cd docs/Documents
+ git fetch origin main
+ git reset --hard origin/main
+ cd -
+else
+ git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents
+fi