Megatest

Hex Artifact Content
Login

Artifact 868b69899e7ba62aaa841ef75d6ac0b9aad0be19:


0000: 23 21 2f 62 69 6e 2f 62 61 73 68 0a 0a 23 20 20  #!/bin/bash..#  
0010: 43 6f 70 79 72 69 67 68 74 20 32 30 30 36 2d 32  Copyright 2006-2
0020: 30 31 37 2c 20 4d 61 74 74 68 65 77 20 57 65 6c  017, Matthew Wel
0030: 6c 61 6e 64 2e 0a 23 20 0a 23 20 54 68 69 73 20  land..# .# This 
0040: 66 69 6c 65 20 69 73 20 70 61 72 74 20 6f 66 20  file is part of 
0050: 4d 65 67 61 74 65 73 74 2e 0a 23 20 0a 23 20 20  Megatest..# .#  
0060: 20 20 20 4d 65 67 61 74 65 73 74 20 69 73 20 66     Megatest is f
0070: 72 65 65 20 73 6f 66 74 77 61 72 65 3a 20 79 6f  ree software: yo
0080: 75 20 63 61 6e 20 72 65 64 69 73 74 72 69 62 75  u can redistribu
0090: 74 65 20 69 74 20 61 6e 64 2f 6f 72 20 6d 6f 64  te it and/or mod
00a0: 69 66 79 0a 23 20 20 20 20 20 69 74 20 75 6e 64  ify.#     it und
00b0: 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 20  er the terms of 
00c0: 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20  the GNU General 
00d0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 61  Public License a
00e0: 73 20 70 75 62 6c 69 73 68 65 64 20 62 79 0a 23  s published by.#
00f0: 20 20 20 20 20 74 68 65 20 46 72 65 65 20 53 6f       the Free So
0100: 66 74 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f  ftware Foundatio
0110: 6e 2c 20 65 69 74 68 65 72 20 76 65 72 73 69 6f  n, either versio
0120: 6e 20 33 20 6f 66 20 74 68 65 20 4c 69 63 65 6e  n 3 of the Licen
0130: 73 65 2c 20 6f 72 0a 23 20 20 20 20 20 28 61 74  se, or.#     (at
0140: 20 79 6f 75 72 20 6f 70 74 69 6f 6e 29 20 61 6e   your option) an
0150: 79 20 6c 61 74 65 72 20 76 65 72 73 69 6f 6e 2e  y later version.
0160: 0a 23 20 0a 23 20 20 20 20 20 4d 65 67 61 74 65  .# .#     Megate
0170: 73 74 20 69 73 20 64 69 73 74 72 69 62 75 74 65  st is distribute
0180: 64 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68  d in the hope th
0190: 61 74 20 69 74 20 77 69 6c 6c 20 62 65 20 75 73  at it will be us
01a0: 65 66 75 6c 2c 0a 23 20 20 20 20 20 62 75 74 20  eful,.#     but 
01b0: 57 49 54 48 4f 55 54 20 41 4e 59 20 57 41 52 52  WITHOUT ANY WARR
01c0: 41 4e 54 59 3b 20 77 69 74 68 6f 75 74 20 65 76  ANTY; without ev
01d0: 65 6e 20 74 68 65 20 69 6d 70 6c 69 65 64 20 77  en the implied w
01e0: 61 72 72 61 6e 74 79 20 6f 66 0a 23 20 20 20 20  arranty of.#    
01f0: 20 4d 45 52 43 48 41 4e 54 41 42 49 4c 49 54 59   MERCHANTABILITY
0200: 20 6f 72 20 46 49 54 4e 45 53 53 20 46 4f 52 20   or FITNESS FOR 
0210: 41 20 50 41 52 54 49 43 55 4c 41 52 20 50 55 52  A PARTICULAR PUR
0220: 50 4f 53 45 2e 20 20 53 65 65 20 74 68 65 0a 23  POSE.  See the.#
0230: 20 20 20 20 20 47 4e 55 20 47 65 6e 65 72 61 6c       GNU General
0240: 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20   Public License 
0250: 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73  for more details
0260: 2e 0a 23 20 0a 23 20 20 20 20 20 59 6f 75 20 73  ..# .#     You s
0270: 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63 65 69  hould have recei
0280: 76 65 64 20 61 20 63 6f 70 79 20 6f 66 20 74 68  ved a copy of th
0290: 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 50 75  e GNU General Pu
02a0: 62 6c 69 63 20 4c 69 63 65 6e 73 65 0a 23 20 20  blic License.#  
02b0: 20 20 20 61 6c 6f 6e 67 20 77 69 74 68 20 4d 65     along with Me
02c0: 67 61 74 65 73 74 2e 20 20 49 66 20 6e 6f 74 2c  gatest.  If not,
02d0: 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f 77 77 77   see <http://www
02e0: 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63 65 6e 73 65  .gnu.org/license
02f0: 73 2f 3e 2e 0a 0a 4d 54 5f 54 4d 50 44 49 53 50  s/>...MT_TMPDISP
0300: 4c 41 59 3d 24 44 49 53 50 4c 41 59 0a 69 66 20  LAY=$DISPLAY.if 
0310: 5b 20 2d 65 20 6d 65 67 61 74 65 73 74 2e 73 68  [ -e megatest.sh
0320: 20 5d 3b 74 68 65 6e 0a 20 20 73 6f 75 72 63 65   ];then.  source
0330: 20 6d 65 67 61 74 65 73 74 2e 73 68 0a 66 69 0a   megatest.sh.fi.
0340: 65 78 70 6f 72 74 20 44 49 53 50 4c 41 59 3d 24  export DISPLAY=$
0350: 4d 54 5f 54 4d 50 44 49 53 50 4c 41 59 0a 0a 69  MT_TMPDISPLAY..i
0360: 66 20 5b 20 78 22 24 4d 54 5f 58 54 45 52 4d 5f  f [ x"$MT_XTERM_
0370: 43 4d 44 22 20 3d 3d 20 22 78 22 20 5d 3b 74 68  CMD" == "x" ];th
0380: 65 6e 0a 20 20 65 78 65 63 20 78 74 65 72 6d 20  en.  exec xterm 
0390: 22 24 40 22 0a 65 6c 73 65 0a 20 20 65 78 65 63  "$@".else.  exec
03a0: 20 24 4d 54 5f 58 54 45 52 4d 5f 43 4d 44 0a 66   $MT_XTERM_CMD.f
03b0: 69 0a 0a                                         i..