#!/bin/bash # Quick Package Updater # John Dong #Licensed under the GPL. echo "CAUTION CAUTION CAUTION: DESTRUCTIVE!!!" echo "ONLY FOR GENERATING INITIAL DIRECTORY STRUCTURE" echo "DO NOT RUN UNLESS YOU KNOW WHAT YOU'RE DOING!!" echo "Exiting for your safety." DISTS="warty-backports warty-extras warty-backports-staging warty-extras-staging hoary-backports hoary-backports-staging hoary-extras hoary-extras-staging" SECTIONS="main universe multiverse restricted bleeding" BINARY_ARCH="binary-i386 binary-ppc binary-amd64" for a in $DISTS; do for b in $SECTIONS; do for c in $BINARY_ARCH; do echo "Archive: $a" > dists/$a/$b/$c/Release echo "Component: $b" >> dists/$a/$b/$c/Release echo "Label: Ubuntu Backports Project" >> dists/$a/$b/$c/Release t=$(echo $c | awk -F- '{print $2}') echo "Architecture: $t" >> dists/$a/$b/$c/Release done done done