nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh -xv |
2 | |||
3 | # |
||
4 | # runa2x.sh |
||
5 | # Wrapper script for running Cygwin's a2x via CMake. |
||
6 | # |
||
7 | # Wireshark - Network traffic analyzer |
||
8 | # By Gerald Combs <gerald@wireshark.org> |
||
9 | # Copyright 2015 Gerald Combs |
||
10 | # |
||
11 | # This program is free software; you can redistribute it and/or |
||
12 | # modify it under the terms of the GNU General Public License |
||
13 | # as published by the Free Software Foundation; either version 2 |
||
14 | # of the License, or (at your option) any later version. |
||
15 | # |
||
16 | # This program is distributed in the hope that it will be useful, |
||
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
19 | # GNU General Public License for more details. |
||
20 | # |
||
21 | # You should have received a copy of the GNU General Public License |
||
22 | # along with this program; if not, write to the Free Software |
||
23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
||
24 | # |
||
25 | |||
26 | # Bugs: |
||
27 | # - This script shouldn't exist. Unfortunately there doesn't appear |
||
28 | # to be a way to construct a Windows command line that can set the |
||
29 | # environment variables below, then run /usr/bin/a2x (which is a symlink). |
||
30 | |||
31 | # Ensure cygwin bin dir is on the path if running under it |
||
32 | if [[ $OSTYPE == "cygwin" ]]; then |
||
33 | PATH="$PATH:/usr/bin" |
||
34 | else |
||
35 | >&2 echo "We're trying to limit the scope of this insanity to CMake + Cygwin" |
||
36 | exit 1 |
||
37 | fi |
||
38 | |||
39 | LC_ALL=C |
||
40 | export LC_ALL |
||
41 | |||
42 | TZ=UTC |
||
43 | export TZ |
||
44 | |||
45 | PATH=/usr/bin |
||
46 | export PATH |
||
47 | |||
48 | PYTHONHOME=/ |
||
49 | export PYTHONHOME |
||
50 | |||
51 | echo "running a2x with args $@" |
||
52 | |||
53 | a2x "$@" |