File: cleanup.sh

package info (click to toggle)
python-super-collections 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 208 kB
  • sloc: python: 1,065; sh: 34; makefile: 3
file content (16 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# This may be useful to get a clean slate (for creating a distribution)

# 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!"