Last change
on this file since 98570 was 98105, checked in by vboxsync, 22 months ago |
tools/bin: Use correct hash-bang so zsh/macOS doesn't give us a 'sh' w/o the support for '-n' option in the echo command.
|
-
Property svn:eol-style
set to
LF
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/usr/bin/env kmk_ash
|
---|
2 | # $Id: backport-merge-and-commit.sh 98105 2023-01-17 15:17:40Z vboxsync $
|
---|
3 | ## @file
|
---|
4 | # Script for merging and commit a backport from trunk.
|
---|
5 | #
|
---|
6 |
|
---|
7 | #
|
---|
8 | # Copyright (C) 2020-2023 Oracle and/or its affiliates.
|
---|
9 | #
|
---|
10 | # This file is part of VirtualBox base platform packages, as
|
---|
11 | # available from https://www.virtualbox.org.
|
---|
12 | #
|
---|
13 | # This program is free software; you can redistribute it and/or
|
---|
14 | # modify it under the terms of the GNU General Public License
|
---|
15 | # as published by the Free Software Foundation, in version 3 of the
|
---|
16 | # License.
|
---|
17 | #
|
---|
18 | # This program is distributed in the hope that it will be useful, but
|
---|
19 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | # General Public License for more details.
|
---|
22 | #
|
---|
23 | # You should have received a copy of the GNU General Public License
|
---|
24 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | #
|
---|
26 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
27 | #
|
---|
28 |
|
---|
29 | #
|
---|
30 | # Determin script dir so we can invoke the two worker scripts.
|
---|
31 | #
|
---|
32 | MY_SED=kmk_sed
|
---|
33 | MY_SCRIPT_DIR=`echo "$0" | "${MY_SED}" -e 's|\\\|/|g' -e 's|^\(.*\)/[^/][^/]*$|\1|'` # \ -> / is for windows.
|
---|
34 | if test "${MY_SCRIPT_DIR}" = "$0"; then
|
---|
35 | MY_SCRIPT_DIR=`pwd -L`
|
---|
36 | else
|
---|
37 | MY_SCRIPT_DIR=`cd "${MY_SCRIPT_DIR}"; pwd -L` # pwd is built into kmk_ash.
|
---|
38 | fi
|
---|
39 |
|
---|
40 | #
|
---|
41 | # Merge & commit.
|
---|
42 | #
|
---|
43 | set -e
|
---|
44 | "${MY_SCRIPT_DIR}/backport-merge.sh" $*
|
---|
45 | echo
|
---|
46 | "${MY_SCRIPT_DIR}/backport-commit.sh" $*
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.