Skip to content

Instantly share code, notes, and snippets.

@hiqua
Created April 22, 2015 16:52
Show Gist options
  • Save hiqua/b76691f45003dfc5e802 to your computer and use it in GitHub Desktop.
Save hiqua/b76691f45003dfc5e802 to your computer and use it in GitHub Desktop.
# Explore the theories given.
# ISABELLE_BIN_PATH must contain the path to the Isabelle binary.
isplore(){
for f in $@; do
theory_name=`echo "$f" | sed 's/.thy//'`
theory_name=`basename -s ".thy" "$f"`
new_theory_name=$theory_name"_tmp"
new_filename=$new_theory_name".thy"
cp "$f" /tmp/$new_filename
sed -i'' "s/$theory_name/$new_theory_name/" /tmp/$new_filename
/.$ISABELLE_BIN_PATH /tmp/$new_filename
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment