5 function startofpath() {
6 if [ -f usr/share/man/man8/`basename $1`.8 ]; then
8 elif [ -f usr/share/man/man1/`basename $1`.1 ]; then
12 elq|pinq|qail|qlist2) echo usr/bin;;
13 datemail|predate|qmail-home|qsmhook|sendmail) echo usr/sbin;;
14 *) echo 1>&2 Cannot determine if $1 belongs in sbin or bin;exit 2;;
19 test -d debian/tmp || (echo "Could not find debian/tmp directory.";exit 1)
23 for f in var/qmail/bin/*; do
24 mv $f `startofpath $f`
27 rmdir var/qmail/bin || ( echo "Could not remove qmail/bin directory!"; exit 3)