Skip to content

Commit

Permalink
fix cleaning in library scripts (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
fblanqui authored Feb 22, 2024
1 parent 9597727 commit 4e2d68f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libraries/holide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ DIR="holide"

# Cleaning command (clean and exit).
if [[ "$#" -eq 1 && ("$1" = "clean" || "$1" = "fullclean") ]]; then
rm -rf ${DIR}
if [[ -d ${DIR} ]]; then find ${DIR} -name '*.lpo' -delete; fi
if [[ "$1" = "fullclean" ]]; then
if [[ -d ${DIR} ]]; then find ${DIR} -name '*.dk' -delete; fi
rm -f holide.tar.gz
fi
exit 0
Expand Down
3 changes: 2 additions & 1 deletion libraries/matita.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ DIR="matita"

# Cleaning command (clean and exit).
if [[ "$#" -eq 1 && ("$1" = "clean" || "$1" = "fullclean") ]]; then
rm -rf ${DIR}
if [[ -d ${DIR} ]]; then find ${DIR} -name '*.lpo' -delete; fi
if [[ "$1" = "fullclean" ]]; then
if [[ -d ${DIR} ]]; then find ${DIR} -name '*.dk' -delete; fi
rm -f matita.tar.gz
fi
exit 0
Expand Down

0 comments on commit 4e2d68f

Please sign in to comment.