gentoo-asahi-releng/scripts/sudo_snapshot
Jorge Manuel B. S. Vicetto (jmbsvicetto) 498f935c11 Add releng scripts to the repository.
2012-07-09 17:48:44 +00:00

21 lines
385 B
Bash
Executable file

#!/bin/bash
usage() {
echo "Usage: $(basename ${0}) <version>"
}
if [ -z "${1}" ]
then
usage
else
catalyst -c /etc/catalyst/snapshot.conf -s ${1}
for i in amd64 x86
do
for j in default dev hardened uclibc
do
cd /release/buildroot/${i}-${j}/snapshots
rm -f portage-${1}.tar.bz2
ln -sf /release/snapshots/portage-${1}.tar.bz2 \
portage-${1}.tar.bz2
done
done
fi