From 2b6105a50027ab2e6007998967f9a46aa4cac6fe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Jun 2011 14:38:20 +0200 Subject: ct / checklinks: Add $pkgdir and parameters with absolute paths --- bin/ct | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/ct') diff --git a/bin/ct b/bin/ct index 4be6702..338fe8a 100755 --- a/bin/ct +++ b/bin/ct @@ -416,9 +416,15 @@ function priority_name { function run_checklinks { if [[ -e links ]] { + ${self_path}/bin/checklinks ${*} ${CL_OPTIONS} \ - --parameter package=${PWD} \ - --parameter etc=${PWD}/etc + --parameter package=${PWD} \ + --parameter a_package=${HOME}/${PWD} \ + --parameter etc=${PWD}/etc \ + --parameter a_etc=${HOME}/${PWD}/etc \ + --parameter pkgdir=${PKG_DIR#${HOME}/} \ + --parameter a_pkgdir=${PKG_DIR} + } elif [[ -d etc && ${MAGIC_ETC} == 1 ]] { ${self_path}/bin/checklinks --ct-auto ${CL_OPTIONS} ${*} } -- cgit v1.2.3