diff --git a/.gitignore b/.gitignore index 18673cf..9553508 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,58 @@ -*.aux -*.html -*.out -*.gz -*.tex -*.toc -*_files/ -.ipynb_checkpoints/ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +bin/ +build/ +develop-eggs/ +dist/ +eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg +.ipynb_checkpoints/ + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject + +# Rope +.ropeproject + +# Django stuff: +*.log +*.pot + +# Sphinx documentation +docs/_build/ + +# back ups +*.*~ +*.zedstate diff --git a/clean_book.sh b/clean_book.sh index a12756c..c0dcd8c 100755 --- a/clean_book.sh +++ b/clean_book.sh @@ -1,5 +1,14 @@ #! /bin/bash -rm *.tex -rm *.toc -rm ./*_files/*.png -rmdir ./*_files/ +rm --f *.tex +rm --f *.toc +rm --f ./*_files/*.png +rm --f Kalman_and_Bayesian_Filters_in_Python.ipynb +rm --f Kalman_and_Bayesian_Filters_in_Python.toc +rm --f Kalman_and_Bayesian_Filters_in_Python.tex +rmdir ./*_files/ 2> /dev/null + +if (( $# == 1)); then + if [ "@1" == all ]; then + rm Kalman_and_Bayesian_Filters_in_Python.pdf; + fi +fi