-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclean.sh
More file actions
executable file
·41 lines (32 loc) · 811 Bytes
/
clean.sh
File metadata and controls
executable file
·41 lines (32 loc) · 811 Bytes
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
#!/bin/bash
set -e
#
##########################################################
# Author : Palanthis (palanthis@gmail.com)
# Website : http://github.com/Palanthis
# License : Distributed under the terms of GNU GPL v3
# Warning : These scripts come with NO WARRANTY!!!!!!
##########################################################
echo
echo "Removing work directory!"
rm -rf work
echo "Removed!"
echo
echo "Removing out directory!"
rm -rf out
echo "Removed!"
echo
echo "Cleaning pacman caches before new build!"
pacman -Scc --noconfirm --quiet
echo "Cleaned!"
echo
echo "Ensuring package cache is truly clean!"
rm -rf /var/cache/pacman/pkg/*
echo "All gone!"
echo
echo "Resyncing databases before new build!"
pacman -Syy --quiet
echo "Sync'd!"
echo
echo "All done! You are now ready to build!"
echo