diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/checklinks | 9 | ||||
-rwxr-xr-x | bin/ct | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/bin/checklinks b/bin/checklinks index d9df1a2..e442665 100755 --- a/bin/checklinks +++ b/bin/checklinks @@ -270,10 +270,11 @@ Set the level threshold to show status messages. While reading the links file, replace $I<parameter> with I<value>. When used in conjuction with ct(1), $package will be set to the current -package's relative path (as seen from $HOME, like C<packages/caretaker>), -$etc will be set to $package/etc (like C<packages/caretaker/etc>) and $pkgdir -will point to the package root (like C<packages>). Also, for each of these -parameters, C<a_param> (like $a_etc) is the corresponding absolute path. +package's absolute path, +$etc will be set to $package/etc (e.g. C<~/packages/caretaker/etc>) and $pkgdir +will point to the package root (e.g. C<~/packages>). Also, for each of these +parameters, C<r_param> (e.g. $r_etc) is the corresponding relative path as +seen from $HOME. =item B<-q>, B<--quiet> @@ -450,11 +450,11 @@ function run_checklinks { ${self_path}/bin/checklinks ${*} ${CL_OPTIONS} \ --parameter package=${PWD} \ - --parameter a_package=${HOME}/${PWD} \ + --parameter r_package=${PWD#${HOME}} \ --parameter etc=${PWD}/etc \ - --parameter a_etc=${HOME}/${PWD}/etc \ - --parameter pkgdir=${PKG_DIR#${HOME}/} \ - --parameter a_pkgdir=${PKG_DIR} + --parameter r_etc=${PWD#${HOME}}/etc \ + --parameter pkgdir=${PKG_DIR} \ + --parameter r_pkgdir=${PKG_DIR#${HOME}/} } elif [[ -d etc && ${MAGIC_ETC} == 1 ]] { ${self_path}/bin/checklinks --ct-auto ${CL_OPTIONS} ${*} |