#!/bin/bash
# Quick Package Updater
# John Dong <jdong2002@users.sf.net>

#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="ubuntu.org.cn"

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.org.cn" >> dists/$a/$b/$c/Release
	t=$(echo $c | awk -F- '{print $2}')
	echo "Architecture:  $t" >> dists/$a/$b/$c/Release
	done
	done

done
