aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-03-27 23:41:56 -0700
committerMatt Turner <mattst88@gentoo.org>2020-03-28 00:39:12 -0700
commit4d77d571a7fbc96fc1c2fee2f8709eee9c73010d (patch)
tree71103deb3ca5878e2ffd72f2ea140b35ea6611d5 /targets/stage2/preclean-chroot.sh
parentsetup.py: Update metadata (diff)
downloadcatalyst-4d77d571a7fbc96fc1c2fee2f8709eee9c73010d.tar.gz
catalyst-4d77d571a7fbc96fc1c2fee2f8709eee9c73010d.tar.bz2
catalyst-4d77d571a7fbc96fc1c2fee2f8709eee9c73010d.zip
targets: Remove redundancy filenames
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'targets/stage2/preclean-chroot.sh')
-rwxr-xr-xtargets/stage2/preclean-chroot.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/targets/stage2/preclean-chroot.sh b/targets/stage2/preclean-chroot.sh
new file mode 100755
index 00000000..3b693d81
--- /dev/null
+++ b/targets/stage2/preclean-chroot.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+export RUN_DEFAULT_FUNCS="no"
+
+source /tmp/chroot-functions.sh
+
+update_env_settings
+show_debug
+
+cleanup_stages
+
+if [ -n "${clst_CCACHE}" ]
+then
+ run_merge -C dev-util/ccache || exit 1
+fi
+
+if [ -n "${clst_DISTCC}" ]
+then
+ run_merge -C sys-devel/distcc || exit 1
+fi
+
+if [ -n "${clst_ICECREAM}" ]
+then
+ run_merge -C sys-devel/icecream || exit 1
+fi