ubuntu-dev-tools/ubuntu-cd
Luke Yelavich ce1925503b * ubuntu-cd: Ensure correct flavours are chosen for edubuntu, and
ubuntu-server
* ubuntu-sync:
  - Ensure that powerpc isos are retrieved from the ports directory of 
    the appropriate origin.
  - Ensure correct flavours are chosen for edubuntu, and ubuntu-server.
2007-07-10 21:03:20 +10:00

51 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -e
# Get the latest CD snapshot release.
Distro="$1"
if [ -z "$Distro" ]; then
echo "Which distro?" >&2
exit 1
fi
Release="$2"
if [ -z "$Release" ]; then
echo "Which ISO release?" >&2
exit 1
fi
Ver=gutsy
Code=tribe
cd ~/distros/ubuntu/"${Distro}"/"${Ver}"
mkdir -p "${Code}"-"${Release}"
cd "${Code}"-"${Release}"
cp ../*.iso . || true
if [ "${Distro}" == "ubuntu" ]; then
Origin="releases"
Flavors="alternate desktop server"
Archs="i386"
#Archs="i386 amd64 powerpc"
elif [ "${Distro}" == "edubuntu" ]; then
Origin="${Distro}/releases"
Flavors="desktop server serveraddon"
Archs="i386"
#Archs="i386 amd64"
elif [ "${Distro}" == "ubuntu-server" ]; then
Origin="releases"
Flavors="server"
Archs="i386"
#Archs="i386 amd64"
else
Origin="${Distro}/releases"
Flavors="alternate desktop"
Archs="i386"
#Archs="i386 amd64"
fi
for arch in $Archs; do
for flavor in $Flavors; do
rsync "rsync://cdimage.ubuntu.com/cdimage/${Origin}/${Ver}/${Code}-${Release}/${Ver}-${flavor}-${arch}.iso" "${Ver}-${flavor}-${arch}.iso"
done
done