source: spip-zone/_plugins_/pgn4spip/branches/test/MacroRunSimu.txt @ 90061

Last change on this file since 90061 was 90061, checked in by jack@…, 6 years ago

Avant de tout casser on passe le trunk dans "branches"

File size: 1.6 KB
Line 
1@echo off
2REM Rename MacroRunSimu.txt to the batch file: MacroRunSimu.bat
3REM Define doskey macros to start/stop the web server or the simulator of live broadcast
4title Xampp Apache server
5REM Adapt the path of the Web server
6set PATH_WEB_SERVER=D:\Tools\Internet\Php\Xampp\Xampp177
7REM Adapt if necessary the path of the SPIP plugin in particular if there is not htdocs
8set PATH_SPIP_WINDOWS=%PATH_WEB_SERVER%\htdocs\spip\plugins\pgn4spip
9REM Adapt if necessary the path of cygwin binaries. By default it is installed in:
10set PATH_CYGWIN=c:\cygwin\bin
11
12REM Convert Windows path with backslahes into Unix path with slahes
13FOR /F "usebackq" %%p IN (`%PATH_CYGWIN%\cygpath -u %PATH_SPIP_WINDOWS%`) DO set PATH_SPIP_UNIX=%%p
14set TITLE_SIMULATOR="Live game broadcast simulator (press Ctrl+C to stop it)"
15REM Define the doskey macro "s" to run the (s)imulator of live broadcast
16doskey s=start %TITLE_SIMULATOR% %PATH_CYGWIN%\bash.exe --login -i %PATH_SPIP_UNIX%/liveDelSimu.sh %PATH_SPIP_UNIX%
17set TITLE_SIMULATOR=
18set PATH_SPIP_WINDOWS=
19set PATH_SPIP_UNIX=
20set PATH_CYGWIN=
21
22REM Define the doskey macro "o" to st(o)p the Web server
23doskey o=%PATH_WEB_SERVER%\xampp_stop.exe
24
25REM Define the doskey macro "h" like (H)elp to list the doskey macros
26doskey h=doskey /macros
27
28REM Define the doskey macro "e" to (e)xit from Command Prompt
29doskey e=exit
30
31REM Define the doskey macro "a" to st(a)rt the Web server
32doskey a=%PATH_WEB_SERVER%\xampp_start.exe
33set PATH_WEB_SERVER=
34
35rem set /p answer=(g)o start the Apache server? (y/n):
36rem if %answer% == y xampp_start.exe
37rem if %answer% == Y xampp_start.exe
38echo Web server: st(a)rt st(o)p (s)imu (h)elp (e)xit
Note: See TracBrowser for help on using the repository browser.