幸运的是,mizf
它不是可执行文件,而是bash
脚本。所以如果你偷看里面
#!/bin/sh
#
# Mizar Verifier, example shell command
#
accommodate()
{
makeenv $1
if [ "$?" = "0" ]
then
verify $1
else
errflag $1
addfmsg $1 $MIZFILES/mizar
exit 2
fi
}
verify()
{
verifier $1
errflag $1
addfmsg $1 $MIZFILES/mizar
}
if [ -z "$1" ]
then
echo "> `basename $0` error : Missing parameter"
echo "Usage: `basename $0` mizar_article_name"
if [ -n "$MIZFILES" ]
then
MizarReleaseNbr=`awk -F= '/MizarReleaseNbr/{print $2}' $MIZFILES/mml.ini`
MizarVersionNbr=`awk -F= '/MizarVersionNbr/{print $2}' $MIZFILES/mml.ini`
MizarVariantNbr=`awk -F= '/MizarVariantNbr/{print $2}' $MIZFILES/mml.ini`
MMLVersion=`awk -F= '/MMLVersion/{print $2}' $MIZFILES/mml.ini`
NumberOfArticles=`awk -F= '/NumberOfArticles/{print $2}' $MIZFILES/mml.ini`
echo "MML ver. $MMLVersion.$NumberOfArticles for Mizar ver. $MizarReleaseNbr.$MizarVersionNbr.$MizarVariantNbr available in $MIZFILES"
fi
exit 1
else
accommodate "`dirname $1`/`basename $1 .miz`"
fi
如您所见,所有每个文件都在MIZFILES
变量的目录中查找
$ ./bin/mizf my.miz
**** File not found ****
**** Can't open ' /mml.ini ' ****
$ export MIZFILES=$PWD/share/mizar
$ ./bin/mizf my.miz
Make Environment, Mizar Ver. 8.1.09 (Darwin/FPC)
Copyright (c) 1990-2019 Association of Mizar Users
-Vocabularies [ 1]
-Constructors [ 1]
-Requirements [ 1]
-Registrations [ 1]
-Notations [ 1]
Verifier based on More Strict Mizar Processor, Mizar Ver. 8.1.09 (Darwin/FPC)
Copyright (c) 1990-2019 Association of Mizar Users
Processing: ./my.miz
Parser [ 2] 0:00
MSM [ 2] 0:00
Analyzer 0:00
Checker [ 1]
Time of mizaring: 0:00