Add releng scripts to the repository.

This commit is contained in:
Jorge Manuel B. S. Vicetto (jmbsvicetto) 2012-07-09 17:47:42 +00:00
parent bd95b08675
commit 498f935c11
13 changed files with 1142 additions and 0 deletions

20
scripts/sudo_snapshot Executable file
View file

@ -0,0 +1,20 @@
#!/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