Bug#839173:

2016-10-18 Thread George Bateman
Patch
From 833b144343a8c272f2a2a52db30b5dab5fb900e8 Mon Sep 17 00:00:00 2001
From: George Bateman 
Date: Tue, 18 Oct 2016 16:18:36 +0100
Subject: [PATCH] Parse the -P (tmpdir) option in jh_installjavadoc

---
 jh_installjavadoc | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/jh_installjavadoc b/jh_installjavadoc
index 7dab62b..dd33848 100755
--- a/jh_installjavadoc
+++ b/jh_installjavadoc
@@ -34,6 +34,10 @@ function installjavadoc()
 	package="$1"
 	src="$2"
 	target="$3"
+	TMPDIR="$(getarg P tmpdir)"
+	if [ -z "$TMPDIR" ]; then
+		TMPDIR="debian/$package"
+	fi
 
 	if [ -z "$AUTHOR" ]; then
 		AUTHOR="The authors of $package"
@@ -48,11 +52,11 @@ function installjavadoc()
 	fi
 
 	if [ -z "$target" ]; then
-		target="debian/$package/usr/share/doc/$package/api"
+		target="$TMPDIR/usr/share/doc/$package/api"
 		docbasepath="/usr/share/doc/$package/api"
 	else
 		docbasepath="/$target"
-		target="debian/$package/$target"
+		target="$TMPDIR/$target"
 	fi
 
 	if [ -n "$VERBOSE" ]; then
-- 
2.9.3



Bug#839173: javahelper: jh_installjavadoc fails to parse -P option

2016-09-29 Thread George Bateman
Package: javahelper
Version: 0.58
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dear Maintainer,

I am attempting to use jh_installjavadoc on a manually compiled javadoc.
The package uses tmpdirs in the form debian/tmp/$package. I therefore
passed the -P option exactly as requested by the man page, but it had no
effect: the javadoc was copied to
debian/libprocessing3-java-doc/usr/share/doc/libprocessing3-java-doc/api/.
The command line I used was

jh_installjavadoc -plibprocessing3-java-doc 
-Pdebian/tmp/libprocessing3-java-doc $OUTDIR 
/usr/share/doc/libprocessing3-java-doc/api/

where $OUTDIR is the temporary folder the javadocs were built to.

The debian/$package notation appears to be hardcoded into
jh_installjavadocs. Please could this be fixed?

Many thanks,
George Bateman.

- -- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages javahelper depends on:
ii  bsdmainutils 9.0.10
ii  dctrl-tools  2.24-2
ii  debhelper10
ii  devscripts   2.16.7
ii  dpkg-dev 1.18.10
ii  libarchive-zip-perl  1.59-1
ii  perl 5.22.2-5

javahelper recommends no packages.

Versions of packages javahelper suggests:
pn  cvs   
ii  gawk  1:4.1.3+dfsg-0.1
pn  tofrodos  

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQE4BAEBCAAiBQJX7WQ5GxxnZW9yZ2UuYmF0ZW1hbjE2QGdtYWlsLmNvbQAKCRDE
F6qcQDnvz7NfB/4vWQMpJ3Qzrspp1CB9vU5G5W6Ooi2d6v0bFYv4WP3HHyvEOzwR
SV6kPH7TgUzYEdrh3OvwkCTgn3fUza5zfqV/r3O2bdKK731bPVcxi1DpzJQ/W1mK
3NsxlAbsePS/W766F2NoUolk01OZvn6SKjySXwhPUvUDgm8lLw7iztu8o9ogFcob
IKG3Dq2EQyEcdpxnITahZ+ZEqZUGXGPmncXBuX2Qv4DIRJx33aKAVcvDTCnRlkEn
/h+JteObdTbw3cYri8AJpfDd8Pi5eu5/GRTJi2zgM3G8HMi98a3oOHIsjZRHTfEJ
PgejjNWLzOEUxgLoEucH2tK/uxOo+yCO6Aa3
=2kx6
-END PGP SIGNATURE-