com web/rmtools: fix snap.bat, c33d8befb0ae9788af2b5d09fc645e5de6dc1ccf was wrong: bin/snap.bat
| From: | Anatol Belski | Date: | Thu, 10 Aug 2017 01:42:20 +0000 |
| Subject: | com web/rmtools: fix snap.bat, c33d8befb0ae9788af2b5d09fc645e5de6dc1ccf was wrong: bin/snap.bat | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26287@lists.php.net to get a copy of this message | ||
Commit: 3f5bf6b1b005483aa1712a24d1404d1a6c0e00f3
Author: Anatol Belski <ab@php.net> Thu, 10 Aug 2017 03:42:20 +0200
Parents: a09415f6de5ab88faeffd52f89186a4fd119ee7f
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=3f5bf6b1b005483aa1712a24d1404d1a6c0e00f3
Log:
fix snap.bat, c33d8befb0ae9788af2b5d09fc645e5de6dc1ccf was wrong
it is a general snapshot build wrapper, not an x86 specialized one
Changed paths:
M bin/snap.bat
Diff:
diff --git a/bin/snap.bat b/bin/snap.bat
index 425e9e9..eccd5b5 100644
--- a/bin/snap.bat
+++ b/bin/snap.bat
@@ -1,9 +1,13 @@
-@echo off
-
-if not exist %~dp0rmtools_setvars.bat (
- echo RMTOOLS is not setup, create %~dp0rmtools_setvars.bat
- exit /b 3
-)
-call %~dp0rmtools_setvars.bat
-
-call %PHP_RMTOOLS_PHP_SDK_ROOT_PATH%\phpsdk-vc15-x86.bat -t
%PHP_RMTOOLS_BIN_PATH%\bin\snapshot_task.bat --task-args "phpmaster all"
+@ECHO OFF
+
+rem must be on the env already
+if "%PHP_SDK_ROOT_PATH%"=="" (
+ echo PHP SDK is not setup
+ exit /b 3
+)
+call %~dp0rmtools_setvars.bat
+
+@ECHO ON
+call %PHP_SDK_PHP_CMD% %PHP_RMTOOLS_SCRIPT_PATH%\snap.php %*
+@ECHO OFF
+