Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: remove --erasing #163

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ fi

usage() {
cat <<__EOF__
usage: `basename $0` [--erasing $erasing.lp] $hollight_file.ml $root_path [coq_file_or_module] ... [$file.mk]
usage: `basename $0` $hollight_file.ml $root_path [coq_file_or_module] ... [$file.mk] [$erasing.lp]

arguments:
$erasing.lp: mappings between lambdapi and coq
$hollight_file.ml: path to an ml file relative to $HOLLIGHT_DIR
$root_path: name of the generated library
coq_file_or_module: coq modules that needs to be imported in generated files
$file.mk: dependencies of vo files given in arguments
$erasing.lp: mappings between lambdapi and coq

effect in the current directory:
- create a file CONFIG containing the command used to create links
Expand All @@ -46,19 +46,14 @@ error() {
parse_args() {
if test $# -ne 0; then
case $1 in
--erasing)
*.lp)
if test -z "$erasing"
then
if test $# -eq 1
then
error 'missing --erasing argument'
else
erasing=$2
shift 2
parse_args $*
fi
erasing=$1
shift
parse_args $*
else
error 'too many --erasing options'
error 'too many lp files'
fi;;
*.ml)
if test -z "$hollight_file"
Expand Down
Loading