Skip to content

Commit e3c2308

Browse files
feat(build): add tools/clean.sh
- for cleaning virtual environments and such. Run setup.sh again to set everything up cleanly.
1 parent 5365a26 commit e3c2308

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
rm -rf .env/
4+
rm -rf build/
5+
rm -rf dist/
6+
rm -rf mathy_alpha_sm.egg-info/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
rm -rf .env/
4+
rm -rf mathy_mkdocs.egg-info/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -e
3+
rm -rf .env/
4+
rm -rf .pytest_cache/
5+
rm -rf pydoc_markdown.egg-info/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
rm -rf .env/
4+
rm -rf .pytest_cache/
5+
rm -rf .mypy_cache/
6+
rm -rf build/
7+
rm -rf dist/
8+
rm -rf mathy.egg-info/

libraries/website/tools/clean.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -e
3+
rm -rf .env/
4+
rm -rf .pytest_cache/

tools/clean.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
echo "Cleaning all setup/build files for apps..."
4+
echo "You will have to run the root 'sh tools/setup.sh' again after this."
5+
libraries="mathy_python mathy_mkdocs mathy_pydoc_markdown website"
6+
for library in $libraries
7+
do
8+
echo "=== Cleaning: $library"
9+
(cd libraries/$library && sh tools/clean.sh)
10+
done

0 commit comments

Comments
 (0)