mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-25 17:21:10 +00:00
* ubuntu-sync - A script to help ease the task of downloading ubuntu daily CD images. (Needs work) * ubuntu-cd - A script to make it easier to download pre-release milestone CDs of Ubuntu releases (Needs work)
25 lines
1.2 KiB
Bash
Executable File
25 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the latest CD snapshot release.
|
|
Distro=$1
|
|
Ver=feisty
|
|
Code=herd
|
|
|
|
cd ~/distros/ubuntu/${Distro}/${Ver}
|
|
mkdir -p ${Code}-$2
|
|
cd ${Code}-$2
|
|
|
|
cp ../*.iso .
|
|
|
|
if [ "${Distro}" == "ubuntu" ]; then
|
|
rsync rsync://cdimage.ubuntu.com/cdimage/releases/${Ver}/${Code}-$2/${Ver}-alternate-i386.iso ${Ver}-alternate-i386.iso
|
|
rsync rsync://cdimage.ubuntu.com/cdimage/releases/${Ver}/${Code}-$1/${Ver}-desktop-i386.iso ${Ver}-desktop-i386.iso
|
|
#rsync rsync://cdimage.ubuntu.com/cdimage/releases/${Ver}/${Code}-$1/${Ver}-alternate-powerpc.iso ${Ver}-alternate-powerpc.iso
|
|
#rsync rsync://cdimage.ubuntu.com/cdimage/releases/${Ver}/${Code}-$1/${Ver}-desktop-powerpc.iso ${Ver}-desktop-powerpc.iso
|
|
else
|
|
rsync rsync://cdimage.ubuntu.com/cdimage/${Distro}/releases/${Ver}/${Code}-$2/${Ver}-alternate-i386.iso ${Ver}-alternate-i386.iso
|
|
rsync rsync://cdimage.ubuntu.com/cdimage/${Distro}/releases/${Ver}/${Code}-$1/${Ver}-desktop-i386.iso ${Ver}-desktop-i386.iso
|
|
#rsync rsync://cdimage.ubuntu.com/cdimage/${Distro}/releases/${Ver}/${Code}-$1/${Ver}-alternate-powerpc.iso ${Ver}-alternate-powerpc.iso
|
|
#rsync rsync://cdimage.ubuntu.com/cdimage/${Distro}/releases/${Ver}/${Code}-$1/${Ver}-desktop-powerpc.iso ${Ver}-desktop-powerpc.iso
|
|
fi
|