OSDN Git Service

Update README.md
[rebornos/cnchi-gnome-osdn.git] / clean.sh
1 #  Copyright © 2016-2019 RebornOS
2 #
3 #  This file is part of RebornOS.
4 #
5 #  Reborn OS is free software; you can redistribute it and/or modify
6 #  it under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 3 of the License, or
8 #  (at your option) any later version.
9 #
10 #  Reborn OS is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #  GNU General Public License for more details.
14 #
15 #  The following additional terms are in effect as per Section 7 of the license:
16 #
17 #  The preservation of all legal notices and author attributions in
18 #  the material or in the Appropriate Legal Notices displayed
19 #  by works containing it is required.
20 #
21 #  You should have received a copy of the GNU General Public License
22 #  along with Reborn OS; If not, see <http://www.gnu.org/licenses/>.
23
24 #!/bin/bash
25 set -e
26 #
27 ##########################################################
28 # Author        :       Palanthis (palanthis@gmail.com)
29 # Website       :       http://github.com/Palanthis
30 # License       :       Distributed under the terms of GNU GPL v3
31 # Warning       :       These scripts come with NO WARRANTY!!!!!!
32 ##########################################################
33
34 echo
35 echo "Removing work directory!"
36 rm -rf work
37 echo "Removed!"
38
39 echo
40 echo "Removing out directory!"
41 rm -rf out
42 echo "Removed!"
43
44 echo
45 echo "Cleaning pacman caches before new build!"
46 pacman -Scc --noconfirm --quiet
47 echo "Cleaned!"
48
49 echo
50 echo "Ensuring package cache is truly clean!"
51 rm -rf /var/cache/pacman/pkg/*
52 echo "All gone!"
53
54 echo
55 echo "Resyncing databases before new build!"
56 pacman -Syy --quiet
57 echo "Sync'd!"
58
59 echo
60 echo "All done! You are now ready to build!"
61 echo
62
63
64