[94237] | 1 | @echo off
|
---|
| 2 | rem $Id: gen-vscode-workspace.cmd 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
| 3 | rem rem @file
|
---|
| 4 | rem Windows NT batch script for launching gen-vscode-workspace.sh
|
---|
| 5 | rem
|
---|
| 6 |
|
---|
| 7 | rem
|
---|
[96407] | 8 | rem Copyright (C) 2022 Oracle and/or its affiliates.
|
---|
[94237] | 9 | rem
|
---|
[96407] | 10 | rem This file is part of VirtualBox base platform packages, as
|
---|
| 11 | rem available from https://www.virtualbox.org.
|
---|
[94237] | 12 | rem
|
---|
[96407] | 13 | rem This program is free software; you can redistribute it and/or
|
---|
| 14 | rem modify it under the terms of the GNU General Public License
|
---|
| 15 | rem as published by the Free Software Foundation, in version 3 of the
|
---|
| 16 | rem License.
|
---|
| 17 | rem
|
---|
| 18 | rem This program is distributed in the hope that it will be useful, but
|
---|
| 19 | rem WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 20 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 21 | rem General Public License for more details.
|
---|
| 22 | rem
|
---|
| 23 | rem You should have received a copy of the GNU General Public License
|
---|
| 24 | rem along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 25 | rem
|
---|
| 26 | rem SPDX-License-Identifier: GPL-3.0-only
|
---|
| 27 | rem
|
---|
[94237] | 28 |
|
---|
| 29 |
|
---|
| 30 | setlocal ENABLEEXTENSIONS
|
---|
| 31 | setlocal
|
---|
| 32 |
|
---|
| 33 | rem
|
---|
| 34 | rem gen-vscode-workspace.sh should be in the same directory as this script.
|
---|
| 35 | rem
|
---|
| 36 | set MY_SCRIPT=%~dp0gen-vscode-workspace.sh
|
---|
| 37 | if exist "%MY_SCRIPT%" goto found
|
---|
| 38 | echo gen-vscode-workspace.cmd: failed to find gen-vscode-workspace.sh in "%~dp0".
|
---|
| 39 | goto end
|
---|
| 40 |
|
---|
| 41 | rem
|
---|
| 42 | rem Found it, convert slashes and tell kmk_ash to interpret it.
|
---|
| 43 | rem
|
---|
| 44 | :found
|
---|
| 45 | set MY_SCRIPT=%MY_SCRIPT:\=/%
|
---|
| 46 | set MY_ARGS=%*
|
---|
| 47 | if ".%MY_ARGS%." NEQ ".." set MY_ARGS=%MY_ARGS:\=/%
|
---|
| 48 | kmk_ash %MY_SCRIPT% --windows-host %MY_ARGS%
|
---|
| 49 |
|
---|
| 50 | :end
|
---|
| 51 | endlocal
|
---|
| 52 | endlocal
|
---|