source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-top.in @ 0a65ad6

4.104.11
Last change on this file since 0a65ad6 was 0a65ad6, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 4, 2008 at 8:26:45 PM

2008-12-04 Joel Sherrill <joel.sherrill@…>

  • psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in: Clean up and works better. Uses argv[0] to override configured target name.
  • Property mode set to 100755
File size: 814 bytes
Line 
1#! @KSH@ -p
2#
3#  Shell script to ease invocation of the powerpc simulator
4#
5#  COPYRIGHT (c) 1989-2008.
6#  On-Line Applications Research Corporation (OAR).
7#
8#  The license and distribution terms for this file may be
9#  found in found in the file LICENSE in this distribution or at
10#  http://www.rtems.com/license/LICENSE.
11#
12#  $Id$
13#
14
15TREE_FILE=psim_tree.${LOGNAME}
16
17rtemsTarget=@target_alias@
18
19progname=${0##*/}        # fast basename hack for ksh, bash
20
21USAGE=\
22"usage: $progname [ -opts ] test [ test ... ]
23        -v         -- verbose
24        -s         -- force System V IPC support on (default=auto)
25        -l limit   -- specify time limit (default is 'no limit')
26"
27
28#   log an error to stderr
29prerr()
30{
31    echo "$*" >&2
32}
33
34fatal() {
35    [ "$1" ] && prerr $*
36    prerr "$USAGE"
37    exit 1
38}
39
40warn() {
41    [ "$1" ] && prerr $*
42}
Note: See TracBrowser for help on using the repository browser.