1 | @echo off
|
---|
2 | rem $Id: backport-merge-and-commit.cmd 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
3 | rem rem @file
|
---|
4 | rem Windows NT batch script for launching backport-merge-and-commit.sh
|
---|
5 | rem
|
---|
6 |
|
---|
7 | rem
|
---|
8 | rem Copyright (C) 2009-2023 Oracle and/or its affiliates.
|
---|
9 | rem
|
---|
10 | rem This file is part of VirtualBox base platform packages, as
|
---|
11 | rem available from https://www.virtualbox.org.
|
---|
12 | rem
|
---|
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
|
---|
28 |
|
---|
29 | setlocal ENABLEEXTENSIONS
|
---|
30 | setlocal
|
---|
31 |
|
---|
32 | rem
|
---|
33 | rem svn-ps.sh should be in the same directory as this script.
|
---|
34 | rem
|
---|
35 | set MY_SCRIPT=%~dp0backport-merge-and-commit.sh
|
---|
36 | if exist "%MY_SCRIPT%" goto found
|
---|
37 | echo backport-merge-and-commit.sh: failed to find backport-merge-and-commit.sh in "%~dp0".
|
---|
38 | goto end
|
---|
39 |
|
---|
40 | rem
|
---|
41 | rem Found it, convert slashes and tell kmk_ash to interpret it.
|
---|
42 | rem
|
---|
43 | :found
|
---|
44 | set MY_SCRIPT=%MY_SCRIPT:\=/%
|
---|
45 | set MY_ARGS=%*
|
---|
46 | if ".%MY_ARGS%." NEQ ".." set MY_ARGS=%MY_ARGS:\=/%
|
---|
47 | kmk_ash %MY_SCRIPT% %MY_ARGS%
|
---|
48 |
|
---|
49 | :end
|
---|
50 | endlocal
|
---|
51 | endlocal
|
---|
52 |
|
---|