"Fossies" - the Fresh Open Source Software Archive

Member "mpr-2.8/mpr" (3 Jan 2004, 410 Bytes) of package /linux/misc/old/mpr-2.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 case "$#" in
    4 0)  echo "usage: mpr a.out [arg ...]" >&2
    5     exit 1;;
    6 *)  aout=`mprwhich "$1"` || exit 1
    7     shift;;
    8 esac
    9 
   10 MPRSO=`mprso "$aout"` || exit 1
   11 eval "$MPRSO"
   12 
   13 case "$MPRLD_PRELOAD" in
   14 ?*)     LD_PRELOAD="$MPRLD_PRELOAD${LD_PRELOAD:+:}$LD_PRELOAD"
   15     export LD_PRELOAD;;
   16 esac
   17 
   18 MPRFI=${MPRFI-"gzip -1>log.%p.gz"}; export MPRFI
   19 
   20 exec "$aout" "$@"
   21 echo mpr: error: could not exec "$aout" "$@" >&2
   22 exit 1