3 # Move files out of debian/tmp, into subpackages.
5 PATH=debian:$PATH:/usr/lib/debhelper
8 for PACKAGE in $DH_DOPACKAGES; do
10 files=`pkgfile $PACKAGE files`
14 # debian/files has a different purpose, so ignore it.
15 if [ "$files" -a "$files" != "debian/files" ]; then
16 if [ "$PACKAGE" = "$MAINPACKAGE" ]; then
17 error "I was asked to move some files from $PACKAGE into itself."
20 if [ ! -d "$TMP" ]; then
21 doit "install -d $TMP"
25 complex_doit "(cd debian/tmp;tar --create --remove-files --file - "`cat $files`") | (cd $TMP;tar xpf -)"