Mercurial > dotfiles
annotate install.cmd @ 481:294cda8cf097
Enable mercurial shelve extension.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 15 Feb 2020 22:21:40 -0800 |
parents | 6f788c83b7f6 |
children |
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 | 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 |