[devscripts] 01/02: Fix test_uscan to use the correct Perl include path.
Benjamin Drung
bdrung at moszumanska.debian.org
Thu Nov 21 15:54:10 UTC 2013
This is an automated email from the git hooks/post-receive script.
bdrung pushed a commit to branch master
in repository devscripts.
commit 8aa8c8e63feee027ae259da25da56e8e8622428d
Author: Benjamin Drung <bdrung at debian.org>
Date: Thu Nov 21 16:52:36 2013 +0100
Fix test_uscan to use the correct Perl include path.
---
test/test_uscan | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/test/test_uscan b/test/test_uscan
index e836f37..aa8ccf7 100755
--- a/test/test_uscan
+++ b/test/test_uscan
@@ -15,7 +15,13 @@
# On Debian systems, the complete text of the GNU General Public License
# version 3 can be found in the /usr/share/common-licenses/GPL-3 file.
-COMMAND="$(pwd)/../scripts/uscan.pl --no-conf"
+if test "$1" = --installed; then
+ COMMAND="uscan --no-conf"
+ shift
+else
+ top_srcdir=$(readlink -f "${0%/*}/..")
+ COMMAND="perl -I $top_srcdir $top_srcdir/scripts/uscan.pl --no-conf"
+fi
cleanup(){
kill -9 $(cat $TMPDIR/repo/pid)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list