parent
e95ef27886
commit
d9ab95e87a
@ -0,0 +1,4 @@
|
||||
# Calculate format=samba name=ini.env ini(overlay-distros.revision)==
|
||||
|
||||
[overlay-distros]
|
||||
revision = 20230214
|
@ -1 +0,0 @@
|
||||
# Calculate append=skip ini(overlay-distros.revision)<20160101
|
@ -1,12 +0,0 @@
|
||||
# Calculate path=/var/lib/calculate name=ini.env format=samba ini(overlay-distros.revision)<#-cut()-#
|
||||
|
||||
[overlay-distros]
|
||||
revision = #-cut()-#
|
||||
world = #-ini(update.world)-#
|
||||
|
||||
[update]
|
||||
!world =
|
||||
|
||||
[update-distros]
|
||||
!world =
|
||||
!revision =
|
@ -1,16 +0,0 @@
|
||||
# Calculate exec=/bin/bash ini(overlay-distros.revision)<#-cut()-#
|
||||
|
||||
#-ini(overlay-distros.revision,#-cut()-#)-#
|
||||
|
||||
if [ ! -f /etc/portage/make.profile ]; then
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CLSM/amd64 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLDM/amd64 /etc/portage/make.profile
|
||||
fi
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CLSM/x86 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLDM/x86 /etc/portage/make.profile
|
||||
fi
|
||||
fi
|
@ -1,16 +0,0 @@
|
||||
# Calculate exec=/bin/bash ini(overlay-distros.revision)<#-cut()-#
|
||||
|
||||
#-ini(overlay-distros.revision,#-cut()-#)-#
|
||||
|
||||
if [ ! -f /etc/portage/make.profile ]; then
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CLSL/amd64 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLDL/amd64 /etc/portage/make.profile
|
||||
fi
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CLSL/x86 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLDL/x86 /etc/portage/make.profile
|
||||
fi
|
||||
fi
|
@ -1,16 +0,0 @@
|
||||
# Calculate exec=/bin/bash ini(overlay-distros.revision)<#-cut()-#
|
||||
|
||||
#-ini(overlay-distros.revision,#-cut()-#)-#
|
||||
|
||||
if [ ! -f /etc/portage/make.profile ]; then
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CMC/amd64 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLS/amd64 /etc/portage/make.profile
|
||||
fi
|
||||
if file /etc/portage/make.profile | grep /var/lib/layman/distros/profiles/CMC/x86 > /dev/null
|
||||
then
|
||||
rm /etc/portage/make.profile
|
||||
ln -sf ../../var/lib/layman/distros/profiles/CLS/x86 /etc/portage/make.profile
|
||||
fi
|
||||
fi
|
@ -1 +0,0 @@
|
||||
# Calculate append=skip ini(overlay-distros.revision)<20180101
|
@ -0,0 +1 @@
|
||||
# Calculate append=skip ini(overlay-distros.revision)<20230101
|
@ -0,0 +1,25 @@
|
||||
# Calculate exec=/bin/bash ini(overlay-distros.revision)<#-cut(0)-#
|
||||
|
||||
#-ini(overlay-distros.revision,#-cut(0)-#)-#
|
||||
|
||||
if -q grep '\[container\]' /etc/portage/repos.conf/zz-calculate.conf && \
|
||||
[[ ! -e /etc/portage/repos.conf/cl-lxc.conf ]]
|
||||
then
|
||||
while IFS= read -r line; do
|
||||
if [[ $line == '[container]' ]]; then
|
||||
new=1
|
||||
elif [[ ${line::1} == '[' ]]; then
|
||||
new=
|
||||
fi
|
||||
|
||||
if [[ $new == 1 ]]; then
|
||||
echo $line >> /etc/portage/repos.conf/cl-lxc.conf
|
||||
else
|
||||
echo $line >> /etc/portage/repos.conf/zz-calculate-new.conf
|
||||
fi
|
||||
|
||||
mv /etc/portage/repos.conf/{zz-calculate-new.conf,zz-calculate.conf}
|
||||
done <<< $(cat /etc/portage/repos.conf/zz-calculate.conf)
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in new issue