xref: /freebsd/contrib/expat/run.sh.in (revision cc68614da8232d8baaca0ae0d0dd8f890f06623e)
10a48773fSEric van Gyzen#! /usr/bin/env bash
2*cc68614dSXin LI#                          __  __            _
3*cc68614dSXin LI#                       ___\ \/ /_ __   __ _| |_
4*cc68614dSXin LI#                      / _ \\  /| '_ \ / _` | __|
5*cc68614dSXin LI#                     |  __//  \| |_) | (_| | |_
6*cc68614dSXin LI#                      \___/_/\_\ .__/ \__,_|\__|
7*cc68614dSXin LI#                               |_| XML parser
8*cc68614dSXin LI#
9*cc68614dSXin LI# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
10*cc68614dSXin LI# Licensed under the MIT license:
11*cc68614dSXin LI#
12*cc68614dSXin LI# Permission is  hereby granted,  free of charge,  to any  person obtaining
13*cc68614dSXin LI# a  copy  of  this  software   and  associated  documentation  files  (the
14*cc68614dSXin LI# "Software"),  to  deal in  the  Software  without restriction,  including
15*cc68614dSXin LI# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
16*cc68614dSXin LI# distribute, sublicense, and/or sell copies of the Software, and to permit
17*cc68614dSXin LI# persons  to whom  the Software  is  furnished to  do so,  subject to  the
18*cc68614dSXin LI# following conditions:
19*cc68614dSXin LI#
20*cc68614dSXin LI# The above copyright  notice and this permission notice  shall be included
21*cc68614dSXin LI# in all copies or substantial portions of the Software.
22*cc68614dSXin LI#
23*cc68614dSXin LI# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
24*cc68614dSXin LI# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
25*cc68614dSXin LI# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
26*cc68614dSXin LI# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
27*cc68614dSXin LI# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
28*cc68614dSXin LI# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
29*cc68614dSXin LI# USE OR OTHER DEALINGS IN THE SOFTWARE.
300a48773fSEric van Gyzen
310a48773fSEric van Gyzencase "@host@" in
320a48773fSEric van Gyzen*-mingw*)
33*cc68614dSXin LI    case "$(uname -o)" in
34*cc68614dSXin LI    Cygwin|Msys)
35*cc68614dSXin LI        # Windows binary on Windows host
36*cc68614dSXin LI        exec "$@"
37*cc68614dSXin LI        ;;
38*cc68614dSXin LI    *)
39*cc68614dSXin LI        # Windows binary on non-Windows host
400a48773fSEric van Gyzen        exec wine "$@"
410a48773fSEric van Gyzen        ;;
42*cc68614dSXin LI    esac
43*cc68614dSXin LI    ;;
440a48773fSEric van Gyzen*)
450a48773fSEric van Gyzen    exec "$@"
460a48773fSEric van Gyzen    ;;
470a48773fSEric van Gyzenesac
48