#!/bin/bash edgy_pkg=" eternal-damnation eternal-damnation eternal-studio eternal-studio eternal-ubuntu eternal-ubuntu eternity-screensaver eternity-screensaver mythtv-wallpapers satanic-gdm-themes satanic-kde-themes satanic-wallpapers satanic-wallpapers-wide usplash-theme-mythtv usplash-theme-mythtv usplash-theme-satanic usplash-theme-satanic usplash-theme-satanic" feisty_pkg=$edgy_pkg gutsy_pkg=" eternal-damnation eternal-damnation eternal-studio eternal-studio eternal-ubuntu eternal-ubuntu eternity-screensaver eternity-screensaver gtk2-engines-aurora kubuntu-satanic kubuntu-satanic-wide mythtv-wallpapers satanic-gdm-themes satanic-gnome-themes satanic-icon-themes satanic-kde-themes satanic-wallpapers satanic-wallpapers-wide ubuntu-satanic ubuntu-satanic-wide usplash-theme-mythtv usplash-theme-mythtv usplash-theme-satanic usplash-theme-satanic usplash-theme-satanic" release="gutsy" arches="all i386 amd64 powerpc" #-------------------------------------------------------------------------- build_dist() { dist=$1 shift pkgs=$* echo "Creating $dist repository" cd ~/bzr/pkg/$dist # Copy binary packages for each arch for arch in $arches; do echo "Copying $arch packages for $dist" mkdir -p ~/public_html/hell/dists/$dist/main/binary-$arch for pkg in $pkgs; do if [ -f $pkg*$arch.deb ]; then echo "Adding $pkg*$arch.deb" # Binary echo cp $pkg*$arch.deb ~/public_html/hell/dists/$dist/main/binary-$arch echo cp $pkg*.dsc ~/public_html/hell/dists/$dist/main/binary-$arch # Source echo cp $pkg*.changes ~/public_html/hell/dists/$dist/main/source echo cp $pkg*.tar.gz ~/public_html/hell/dists/$dist/main/source fi done done # Copy source packages # echo "Copying source packages for $dist" # mkdir -p ~/public_html/hell/dists/$dist/main/source # for pkg in $pkgs; do # done } #-------------------------------------------------------------------------- # Main echo "Removing old packages" rm -r ~/public_html/hell/dists #build_dist edgy $edgy_pkg #build_dist feisty $feisty_pkg build_dist gutsy $gutsy_pkg