File: cleanup.sh

package info (click to toggle)
mkdocs-test 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 436 kB
  • sloc: python: 938; sh: 34; makefile: 5
file content (17 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# This is necessary to start from a clean version for test

# Find and delete all __pycache__ directories
find . -type d -name "__pycache__" -exec rm -rf {} +

# Find and delete all directories starting with __
find . -type d -name "__*" -exec rm -rf {} +

# Find and delete all .egg-info directories
find . -type d -name "*.egg-info" -exec rm -rf {} +

# Find and delete all .egg files
find . -type f -name "*.egg" -exec rm -f {} +

echo "Cleanup complete!"