summaryrefslogtreecommitdiff
path: root/src/win32ctl/pcp.bat
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/win32ctl/pcp.bat
downloadpcp-47e6e7c84f008a53061e661f31ae96629bc694ef.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/win32ctl/pcp.bat')
-rwxr-xr-xsrc/win32ctl/pcp.bat10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32ctl/pcp.bat b/src/win32ctl/pcp.bat
new file mode 100755
index 0000000..81f72be
--- /dev/null
+++ b/src/win32ctl/pcp.bat
@@ -0,0 +1,10 @@
+@echo off
+if "%OS%" == "Windows_NT" goto WinNT
+%PCP_DIR%\bin\sh.exe pcp.sh %1 %2 %3 %4 %5 %6 %7 %8 %9
+goto endofbash
+:WinNT
+%PCP_DIR%\bin\sh.exe pcp.sh %*
+if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofbash
+if %errorlevel% == 9009 echo You do not have sh.exe in your PCP_DIR.
+if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
+:endofbash