for bin in bin/apt-* 
do
	install -v --group=root --owner=root --mode=755 $bin ${INSTALL_ROOT}/usr/bin
done &&

for lib in bin/lib*
do
	cp -va $lib ${INSTALL_ROOT}/usr/lib
done &&

for mannum in 1 5 8
do
	for man in `ls -d docs/* | grep "docs/[a-z]*.[a-z]*.$mannum"`
	do
		install -v --group=root --owner=root --mode=644 $man ${INSTALL_ROOT}/usr/share/man/man$mannum
	done
done &&

install -v --group=root --owner=root --mode=644 -d ${INSTALL_ROOT}/usr/lib/apt/methods &&
for method in bin/methods/*
do
	if [ -h $method ]
	then
		cp -va $method ${INSTALL_ROOT}/usr/lib/apt/methods
	else
		install -v --group=root --owner=root --mode=755 $method ${INSTALL_ROOT}/usr/lib/apt/methods
	fi
done &&

install -v --group=root --owner=root --mode=644 -d ${INSTALL_ROOT}/usr/lib/dpkg/methods/apt &&
for method in scripts/dselect/*
do
	cp -va $method ${INSTALL_ROOT}/usr/lib/dpkg/methods/apt
done &&


install -v --group=root --owner=root --mode=644 -d ${INSTALL_ROOT}/usr/share/apt &&
for keyring in share/*.gpg
do
	install -v --group=root --owner=root --mode=644 $keyring ${INSTALL_ROOT}/usr/share/apt
done &&

for locale in locale/*
do
	cp -va $locale ${INSTALL_ROOT}/usr/share/locale
done
