annotate install.cmd @ 477:6f788c83b7f6

Clean up installer output.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 05 Feb 2020 09:28:55 -0800
parents a9011b1b073f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
1 @echo off
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
2 setlocal
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
3
d07ca3d7f36c Updated Windows scripts
Ludovic Chabant <ludovic@chabant.com>
parents: 28
diff changeset
4 set CWD=%~dp0
124
20c49d51f7e3 Added `.gitconfig`.
Ludovic Chabant <ludovic@chabant.com>
parents: 95
diff changeset
5
415
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
6 set PYEXE=python
477
6f788c83b7f6 Clean up installer output.
Ludovic Chabant <ludovic@chabant.com>
parents: 433
diff changeset
7 where %PYEXE% 1>nul 2>nul
415
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
8 if errorlevel 1 (
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
9 echo Python isn't in your PATH. Run the install script yourself.
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
10 exit /b 1
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
11 )
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
12
433
a9011b1b073f Actually run the command, duh.
Ludovic Chabant <ludovic@chabant.com>
parents: 415
diff changeset
13 python %CWD%install.py %*
415
e57b012539d5 Check if Python is in the `PATH` on Windows.
Ludovic Chabant <ludovic@chabant.com>
parents: 407
diff changeset
14