aboutsummaryrefslogtreecommitdiff
path: root/buildtools/packman/windows/packman.cmd
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
committerBryan Galdrikian <[email protected]>2017-02-24 09:32:20 -0800
commite1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch)
tree9f0cfce09c71a2c27ff19589fcad6cd83504477c /buildtools/packman/windows/packman.cmd
parentfirst commit (diff)
downloadblast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz
blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'buildtools/packman/windows/packman.cmd')
-rw-r--r--buildtools/packman/windows/packman.cmd23
1 files changed, 23 insertions, 0 deletions
diff --git a/buildtools/packman/windows/packman.cmd b/buildtools/packman/windows/packman.cmd
new file mode 100644
index 0000000..f9678aa
--- /dev/null
+++ b/buildtools/packman/windows/packman.cmd
@@ -0,0 +1,23 @@
+:: Reset errorlevel status so we are not inheriting this state from the calling process:
+@call :RESET_ERROR
+:: You can remove the call below if you do your own manual configuration of the dev machines
+@call "%~dp0\configure\configure.bat"
+@if errorlevel 1 exit /b 1
+:: Everything below is mandatory
+@if not defined PM_PYTHON goto :PYTHON_ENV_ERROR
+@if not defined PM_MODULE goto :MODULE_ENV_ERROR
+
+@"%PM_PYTHON%" "%PM_MODULE%" %*
+@goto :eof
+
+:: Subroutines below
+:PYTHON_ENV_ERROR
+@echo User environment variable PM_PYTHON is not set! Please configure machine for packman or call configure.bat.
+@exit /b 1
+
+:MODULE_ENV_ERROR
+@echo User environment variable PM_MODULE is not set! Please configure machine for packman or call configure.bat.
+@exit /b 1
+
+:RESET_ERROR
+@exit /b 0 \ No newline at end of file