summaryrefslogtreecommitdiff
path: root/scripts/dev/setup.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/setup.ps1')
-rw-r--r--scripts/dev/setup.ps122
1 files changed, 22 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
+}