Skip to content
Snippets Groups Projects
Commit 18706238 authored by gabrielhdt's avatar gabrielhdt
Browse files

script making top file

parent a2baf7f9
No related branches found
No related tags found
No related merge requests found
# Ignore generated top files
top.lp
require prelude.cert_f.booleans prelude.cert_f.equalities
prelude.cert_f.naturalnumbers prelude.cert_f.notequal
require encodings.pvs_core prelude.core.booleans prelude.core.equalities
prelude.core.notequal prelude.core.if_def
#!/bin/bash
## [./mk_top.sh d] creates a file [d/top.lp] importing all files in [d/]
out="top.lp"
( cd "$1" || exit
rm "${out}"
for f in *.lp; do
p=$(printf '%s/' "$1" | tr -s '/' '.')
printf 'require %s%s\n' "${p}" "${f%.lp}" >> "${out}"
done )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment