-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclean.sh
More file actions
executable file
·72 lines (72 loc) · 1.21 KB
/
clean.sh
File metadata and controls
executable file
·72 lines (72 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
#
# Auto-Cleaning Script
# Created by Keripo
# For Project ZeroSlackr
# Last updated: Apr 15, 2008
#
echo ""
echo "==========================================="
echo "==========================================="
echo ""
echo " Full ZeroSlackr Cleaning Script"
echo " [ because I'm lazy ; ) ]"
echo ""
# lump
SVNROOT=$(pwd)
LUMP=$SVNROOT"/_lump"
if [ -d $LUMP ]; then
echo "> Removing "$LUMP"..."
rm -rf $LUMP
fi
# libs
echo "> Cleaning libs..."
cd $SVNROOT
cd libs
./clean.sh
# base
echo "> Cleaning base..."
cd $SVNROOT
cd base
for folder in *
do
cd $folder
if [ -e SKIP.txt ]; then
echo " - Skipping cleaning of "$folder"..."
else
rm -rf build
fi
cd ..
done
# packs
echo "> Cleaning packs..."
cd $SVNROOT
cd packs
for folder in *
do
echo " - Cleaning packs in "$folder"..."
cd $folder
for pack in *
do
cd $pack
if [ -e SKIP.txt ]; then
echo " - Skipping cleaning of "$folder"/"$pack"..."
else
rm -rf build
fi
cd ..
done
cd ..
done
# backups
cd $SVNROOT
./rm-backups.sh
# done
echo ""
echo " Fin!"
echo ""
echo " Auto-Cleaning Script by Keripo"
echo ""
echo "==========================================="
echo "==========================================="
echo ""