xref: /aoo41x/main/l10ntools/scripts/xtxex (revision e76eebc6)
1cdf0e10cSrcweir#!/bin/sh
2*e76eebc6SAndrew Rist#**************************************************************
3*e76eebc6SAndrew Rist#
4*e76eebc6SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
5*e76eebc6SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
6*e76eebc6SAndrew Rist#  distributed with this work for additional information
7*e76eebc6SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
8*e76eebc6SAndrew Rist#  to you under the Apache License, Version 2.0 (the
9*e76eebc6SAndrew Rist#  "License"); you may not use this file except in compliance
10*e76eebc6SAndrew Rist#  with the License.  You may obtain a copy of the License at
11*e76eebc6SAndrew Rist#
12*e76eebc6SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
13*e76eebc6SAndrew Rist#
14*e76eebc6SAndrew Rist#  Unless required by applicable law or agreed to in writing,
15*e76eebc6SAndrew Rist#  software distributed under the License is distributed on an
16*e76eebc6SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*e76eebc6SAndrew Rist#  KIND, either express or implied.  See the License for the
18*e76eebc6SAndrew Rist#  specific language governing permissions and limitations
19*e76eebc6SAndrew Rist#  under the License.
20*e76eebc6SAndrew Rist#
21*e76eebc6SAndrew Rist#**************************************************************
22cdf0e10cSrcweir
23cdf0e10cSrcweirif [ x${SOLARENV}x = xx ]; then
24cdf0e10cSrcweir    echo No environment found, please use 'setsolar'
25cdf0e10cSrcweirexit 1
26cdf0e10cSrcweirfi
27cdf0e10cSrcweir
28cdf0e10cSrcweirif [ ${GUI} = "WNT" ]; then
29cdf0e10cSrcweirif [ x${SOLARVER}x = xx -o x${UPDMINOREXT}x = xx  ]; then
30cdf0e10cSrcweir    exec python $SOLARVERSION/$INPATH/bin/xtxex.py "$@"
31cdf0e10cSrcweirelse
32cdf0e10cSrcweir    exec python $SOLARVERSION/$INPATH/bin$UPDMINOREXT/xtxex.py "$@"
33cdf0e10cSrcweirfi
34cdf0e10cSrcweirelse
35cdf0e10cSrcweirif [ x${SOLARVER}x = xx -o x${UPDMINOREXT}x = xx  ]; then
36cdf0e10cSrcweir    exec python $SOLARVERSION/$INPATH/bin/xtxex.py "$@"
37cdf0e10cSrcweirelse
38cdf0e10cSrcweir    exec python $SOLARVERSION/$INPATH/bin$UPDMINOREXT/xtxex.py "$@"
39cdf0e10cSrcweirfi
40cdf0e10cSrcweirfi
41cdf0e10cSrcweir
42