Created
April 22, 2015 16:52
-
-
Save hiqua/b76691f45003dfc5e802 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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