summaryrefslogtreecommitdiff
path: root/bin/ct
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-26 14:38:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-26 14:38:20 +0200
commit2b6105a50027ab2e6007998967f9a46aa4cac6fe (patch)
treef782cab3aea7b0c9d867a4bbc8beeee80ec4914d /bin/ct
parent78950ebb92510c72c6cd08e591378ae6f292b0ac (diff)
ct / checklinks: Add $pkgdir and parameters with absolute paths
Diffstat (limited to 'bin/ct')
-rwxr-xr-xbin/ct10
1 files changed, 8 insertions, 2 deletions
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} ${*}
}