blob: 166421e48522d168a4d02971e0108ddc205de00c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
export local portagedir="/usr/portage"
export local confdir="/etc/portage"
reset_current_mode() {
if [ -d ""$portagedir"/.git" ] ; then
find "$portagedir" -mindepth 1 -name "packages" -prune -o -name "distfiles" -prune -o -exec rm -rf {} \; > /dev/null 2>&1
rm ""$confdir"/make.conf"
rm ""$confdir"/make.profile"
rm "$confdir"
fi
}
main () {
reset_current_mode
}
main
|