# Calculate run=/bin/bash ini(overlay-calculate.revision)<#-cut(0,-,#-cl_pass_file-#)-#

#-ini(overlay-calculate.revision,#-cut(0,-,#-cl_pass_file-#)-#)-#

#?cl_chroot_status==on#
# удаление сетов custom
rm -f /etc/portage/sets/custom
sed -ri '/^@custom$/d' /var/lib/portage/world_sets
#!cl_chroot_status#
# переименование custom в custom.[short]
for fn in /etc/portage/package.{unmask,use,keywords}/custom
do
	[[ -f $fn ]] && mv $fn $(dirname $fn)/zz-autounmask
done

makeconf="/etc/portage/make.conf/custom"
[[ -f $makeconf ]] && mv $makeconf $makeconf.#-case(lower,os_linux_shortname)-#
#?load(empty,/etc/portage/sets/custom)==#
rm -f /etc/portage/sets/custom
#!load#
mv /etc/portage/sets/custom /etc/portage/sets/custom.#-case(lower,os_linux_shortname)-#
#load#

#?load(empty,/etc/portage/package.mask/custom)==#
rm -f /etc/portage/package.mask/custom
#!load#
mv /etc/portage/package.mask/custom /etc/portage/package.mask/custom.#-case(lower,os_linux_shortname)-#
#load#
sed -ri '/^@custom$/d' /var/lib/portage/world_sets
#cl_chroot_status#

true
