a radical and experimental distribution based on musl libc and busybox http://sabo.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
566 B

#!/bin/sh
[ -z "$CONFIG" ] && CONFIG="$PWD/config"
[ ! -f "$CONFIG" ] && CONFIG=/src/config
if [ ! -f "$CONFIG" ] ; then
echo "error: $CONFIG not found"
exit 1
fi
export CONFIG
. "$CONFIG"
[ "$R" = "/" ] && R=
[ -z "$BUTCHDB" ] && BUTCHDB=$R/var/lib/butch.db
for pkg in gcc3 gcc424 stage0-gcc424 stage1-gcc424 stage0-gcc3 stage1-gcc3 stage0-musl; do
"$K"/bin/butch-rm "$pkg" > /dev/null
done
for pkg in musl $("$K"/bin/butch-list | grep '^gcc[4-6][0-9][0-9]$' |tail -n1); do
"$K"/bin/butch-relocate "$pkg" > /dev/null
done
echo "stage1-gcc3 1" >> "$BUTCHDB"