Revision added

master
nemofsan 1 year ago
parent f940bd6d4e
commit 9bade3fbb3

@ -0,0 +1 @@
# Calculate path=/var/lib name=calculate

@ -0,0 +1,4 @@
# Calculate format=samba name=ini.env ini(calculate-gnome.revision)==
[calculate-gnome]
revision = 20230222

@ -0,0 +1 @@
# Calculate append=skip ini(calculate-gnome.revision)<20240101

@ -0,0 +1,25 @@
# Calculate exec=/bin/bash ini(calculate-gnome.revision)<#-cut(0)-#
#-ini(calculate-gnome.revision,#-cut(0)-#)-#
if grep -q '\[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
done <<< $(cat /etc/portage/repos.conf/zz-calculate.conf)
mv /etc/portage/repos.conf/zz-calculate-new.conf /etc/portage/repos.conf/zz-calculate.conf
fi
exit 0

@ -0,0 +1,9 @@
# Calculate exec=/bin/bash ini(calculate-gnome.revision)<#-cut(0)-#
#-ini(calculate-gnome.revision,#-cut(0)-#)-#
if [[ -e /etc/portage/repos.conf/cl-lxc.conf ]]; then
sed -i 's/^sync-type.*/sync-type = git/g' /etc/portage/repos.conf/cl-lxc.conf
fi
exit 0
Loading…
Cancel
Save