File: mint.in

package info (click to toggle)
mercury 0.7.3-3.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 52,272 kB
  • ctags: 228,415
  • sloc: objc: 79,256; ansic: 26,505; sh: 5,688; cpp: 685; makefile: 429; asm: 209; awk: 187; exp: 43; csh: 1
file content (33 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (2)
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
#! /bin/sh
# @configure_input@
#---------------------------------------------------------------------------#
# Copyright (C) 1995 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#---------------------------------------------------------------------------#
#
# mint - Mercury interface browser.
#
# Usage: mint module-name ...

INTDIR=${MERCURY_INT_DIR=@LIBDIR@/ints}

exit_status=0

if [  $# -lt 1 ]
then
	echo "usage: `basename $0` module-name ..." 1>&2
	exit 1
fi

for arg in "$@"; do
	module="`basename $arg .m`"
	file="$INTDIR/$module.int"
	if [ -r "$file" ]; then
		${PAGER=more} "$file"
	else
		echo "`basename $0`: no interface file for \`$module'." 1>&2
		exit_status=1
	fi
done
exit $exit_status