diff options
author | joey <joey> | 1999-08-17 04:21:03 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:21:03 +0000 |
commit | 7511571c6481101f17f9858357e62d133a8dcb1a (patch) | |
tree | 8d0f7bb4acf149bc2f85f7151877d4b73e1271ed /dh_installchangelogs | |
parent | 0495115e6ef5c603dfedae1a918690b078ffff9c (diff) | |
parent | ecff4e2941eefd33c368be7a0ee372406a6d0e94 (diff) | |
download | debhelper-7511571c6481101f17f9858357e62d133a8dcb1a.tar.gz |
r4: Initial Import
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-x | dh_installchangelogs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs index 935a87a6..4a93188c 100755 --- a/dh_installchangelogs +++ b/dh_installchangelogs @@ -13,7 +13,7 @@ source dh_lib UPSTREAM=$1 if [ "$NATIVE" -a "$UPSTREAM" ]; then - error "Cannot specify an upstream changelog for a native package." + error "Cannot specify an upstream changelog for a native debian package." fi if [ "$NATIVE" ]; then @@ -22,11 +22,15 @@ else CHANGELOG_NAME=changelog.Debian fi -if [ ! -d debian/tmp/usr/doc/$PACKAGE ]; then - doit "install -d debian/tmp/usr/doc/$PACKAGE" -fi -doit "install -p -m644 debian/changelog debian/tmp/usr/doc/$PACKAGE/$CHANGELOG_NAME" +for PACKAGE in $DH_DOPACKAGES; do + TMP=`tmpdir $PACKAGE` -if [ "$UPSTREAM" ]; then - doit "install -p -m644 $UPSTREAM debian/tmp/usr/doc/$PACKAGE/changelog" -fi + if [ ! -d debian/$TMP/usr/doc/$PACKAGE ]; then + doit "install -d debian/$TMP/usr/doc/$PACKAGE" + fi + doit "install -p -m644 debian/changelog debian/$TMP/usr/doc/$PACKAGE/$CHANGELOG_NAME" + + if [ "$UPSTREAM" ]; then + doit "install -p -m644 $UPSTREAM debian/$TMP/usr/doc/$PACKAGE/changelog" + fi +done |