diff options
author | joey <joey> | 1999-08-17 04:37:02 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:37:02 +0000 |
commit | 0c4875b3fecb5b376257e248b129537dd148e0c4 (patch) | |
tree | 09d2f70bc2a6f3eecd08c1d25002be40ab73af64 /dh_installmanpages | |
parent | 1921f5c59e9a736db764c2cae6ef8dd092167d73 (diff) | |
download | debhelper-0c4875b3fecb5b376257e248b129537dd148e0c4.tar.gz |
r21: Initial Import
Diffstat (limited to 'dh_installmanpages')
-rwxr-xr-x | dh_installmanpages | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dh_installmanpages b/dh_installmanpages index 304c3b12..4a0ffb47 100755 --- a/dh_installmanpages +++ b/dh_installmanpages @@ -13,7 +13,7 @@ for PACKAGE in $DH_DOPACKAGES; do # Find all filenames that look like man pages. # .ex files are examples installed by deb-make, we don't want those, or # .in files, which are from configure. - for file in `find * -name "*.[1-9]*" ! -name "*.ex" ! -name "*.in" | grep -v ^debian/$TMP`; do + for file in `find * -name "*.[1-9]*" ! -name "*.ex" ! -name "*.in" | grep -v ^$TMP`; do # Make sure file thinks they are man pages. if file $file|grep -q roff; then if echo $file|grep -q /; then @@ -32,12 +32,12 @@ for PACKAGE in $DH_DOPACKAGES; do done if [ "$install" ]; then SECTION=man`expr $NAME : '.*\.\([123456789]\)'` - if [ ! -e debian/$TMP/usr/man/$SECTION/$NAME -a \ - ! -e debian/$TMP/usr/X11*/man/$SECTION/$NAME ]; then - if [ ! -d debian/$TMP/usr/man/$SECTION ]; then - doit "install -d debian/$TMP/usr/man/$SECTION" + if [ ! -e $TMP/usr/man/$SECTION/$NAME -a \ + ! -e $TMP/usr/X11*/man/$SECTION/$NAME ]; then + if [ ! -d $TMP/usr/man/$SECTION ]; then + doit "install -d $TMP/usr/man/$SECTION" fi - doit "install -p -m644 $file debian/$TMP/usr/man/$SECTION/$NAME" + doit "install -p -m644 $file $TMP/usr/man/$SECTION/$NAME" fi fi fi |