This file is indexed.

/usr/bin/mp2eps is in bsdowl 2.2.2-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
#!/bin/sh

### mp2eps.sh -- Convert METAPOST output to PostScript

# Author: Michael Grünewald
# Date: Sat 10 Dec 2005 09:58:48 GMT


# Global Variables:

AUTHOR="Michael Grünewald <michipili@gmail.com>"
COPYRIGHT="©2005–2014"
PROGNAME=`basename "$0"`


# Ancillary functions

prerr()
{
    echo "$@" 1>&2
}

HELP()
{
    iconv -f utf-8 <<EOF
Usage: $PROGNAME [-h] [file1 [file2 [...]]]
 Convert METAPOST output to encapsulated PostScript
Options:
 -h Display a cheerful help message to you.
Notes:
 The conversion is done thanks to TeX and epsf.tex.  This tool is
 useful to circumvent a bug in Ghostscript which does not interpret
 correctly bounding boxes.
Author: Michael Grünewald
Copyright: ${COPYRIGHT}
EOF
}

INVALIDOPT() {
    prerr "${PROGNAME}: unknown option: $1"
}

is_yes ()
{
    case "$1" in
	[Yy][Ee][Ss]) return 0;;
	*) 		return 1;;
	esac
}

is_no ()
{
    case "$1" in
	[Nn][Oo])	return 0;;
	*)		return 1;;
	esac
}

# Working Functions

process_arg() {
    inputfile="$1";
    basename="${inputfile%.mps}"
    texbase=$(mktemp ${basename}_XXXX)
    texfile="$texbase.tex"
    epsfile="$basename.eps"

    cat > $texfile <<EOF
\nopagenumbers
\input epsf
\setbox0=\vbox{%
  \offinterlineskip
  \hbox to 0pt{\epsfbox{$inputfile}\hss}%
  \offinterlineskip
}%
\shipout\box0\relax
\end
EOF

    tex "$texfile"
    dvips $DVIPS_OPTS -E -j -o "$epsfile" "$texbase"
    rm -f "$texbase"*
}


# Process Arguments

DEBUG=no
while getopts "Dh" OPTION; do
    case $OPTION in
	D)	DEBUG=yes;;
	h)	HELP; exit 0;;
	?)	INVALIDOPT $OPTION; HELP; exit 1;;
    esac
done

if [ $DEBUG = no ]; then
    exec 2>/dev/null 1>/dev/null
else
    echo Debugging 1>&2
fi

shift $(expr $OPTIND - 1)

for arg in "$@"; do process_arg "$arg"; done

### End of file `mp2eps.sh'