aboutsummaryrefslogtreecommitdiff
path: root/windows/bin
diff options
context:
space:
mode:
Diffstat (limited to 'windows/bin')
-rw-r--r--windows/bin/gmake.cmd8
-rw-r--r--windows/bin/npm-update.cmd3
-rw-r--r--windows/bin/nvim-update.cmd3
-rw-r--r--windows/bin/pkg-update.cmd3
-rw-r--r--windows/bin/system-update.cmd10
5 files changed, 18 insertions, 9 deletions
diff --git a/windows/bin/gmake.cmd b/windows/bin/gmake.cmd
index 1c45ce5..5f2bad4 100644
--- a/windows/bin/gmake.cmd
+++ b/windows/bin/gmake.cmd
@@ -1,11 +1,7 @@
1@echo off 1@echo off
2
2rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua) 3rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua)
3rem unter Windows funktioniert, ohne die bestehende Config anzupassen. 4rem unter Windows funktioniert.
4rem Reicht alle Argumente an das im PATH gefundene "make" weiter.
5rem
6rem Einmalig einrichten: dieses Verzeichnis (windows\bin) zum PATH
7rem hinzufuegen, z.B. ueber:
8rem setx PATH "%PATH%;%USERPROFILE%\dotfiles\windows\bin"
9 5
10make %* 6make %*
11exit /b %ERRORLEVEL% 7exit /b %ERRORLEVEL%
diff --git a/windows/bin/npm-update.cmd b/windows/bin/npm-update.cmd
new file mode 100644
index 0000000..9152c97
--- /dev/null
+++ b/windows/bin/npm-update.cmd
@@ -0,0 +1,3 @@
1@echo off
2
3npm update -g --loglevel=info
diff --git a/windows/bin/nvim-update.cmd b/windows/bin/nvim-update.cmd
index 7521e7e..5317f34 100644
--- a/windows/bin/nvim-update.cmd
+++ b/windows/bin/nvim-update.cmd
@@ -1,8 +1,5 @@
1@echo off 1@echo off
2 2
3rem Prüft vor dem Parser-Update, ob ein C-Compiler (cl.exe, MSVC) im PATH
4rem gefunden wird - nvim-treesitter braucht ihn zum Kompilieren der Parser.
5
6where /q cl.exe 3where /q cl.exe
7if errorlevel 1 ( 4if errorlevel 1 (
8 echo [nvim-update] cl.exe nicht gefunden - Neovim aus einer "Developer PowerShell for VS" starten. 1>&2 5 echo [nvim-update] cl.exe nicht gefunden - Neovim aus einer "Developer PowerShell for VS" starten. 1>&2
diff --git a/windows/bin/pkg-update.cmd b/windows/bin/pkg-update.cmd
new file mode 100644
index 0000000..3747579
--- /dev/null
+++ b/windows/bin/pkg-update.cmd
@@ -0,0 +1,3 @@
1@echo off
2
3winget upgrade --all --accept-package-agreements --accept-source-agreements
diff --git a/windows/bin/system-update.cmd b/windows/bin/system-update.cmd
new file mode 100644
index 0000000..6c355d0
--- /dev/null
+++ b/windows/bin/system-update.cmd
@@ -0,0 +1,10 @@
1@echo off
2
3call pkg-update.cmd
4if errorlevel 1 exit /b 1
5
6call npm-update.cmd
7if errorlevel 1 exit /b 1
8
9call nvim-update.cmd
10if errorlevel 1 exit /b 1