summaryrefslogtreecommitdiff
path: root/dev/build/windows/MakeCoq_SetRootPath.bat
diff options
context:
space:
mode:
Diffstat (limited to 'dev/build/windows/MakeCoq_SetRootPath.bat')
-rw-r--r--dev/build/windows/MakeCoq_SetRootPath.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev/build/windows/MakeCoq_SetRootPath.bat b/dev/build/windows/MakeCoq_SetRootPath.bat
new file mode 100644
index 00000000..3a371172
--- /dev/null
+++ b/dev/build/windows/MakeCoq_SetRootPath.bat
@@ -0,0 +1,16 @@
+@ ECHO OFF
+
+REM Figure out a root path for coq and cygwin
+
+REM For the \nul trick for testing folders see
+REM https://support.microsoft.com/en-us/kb/65994
+
+IF EXIST D:\bin\nul (
+ SET ROOTPATH=D:\bin
+) else if EXIST C:\bin (
+ SET ROOTPATH=C:\bin
+) else (
+ SET ROOTPATH=C:
+)
+
+ECHO ROOTPATH set to %ROOTPATH%