summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-29 11:06:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-29 11:06:26 +0200
commit996054c82f0aa6260df1acece323ea41b93a410a (patch)
tree9d72660c24bc0a168f15a49ed2b570aaab6ef429
parenta51f8b1e06eb72d3164aadd63961780a07ed6b58 (diff)
Fix checklinks parameters (they're absolute by default, replace $a_foo by $r_foo)
-rwxr-xr-xbin/checklinks9
-rwxr-xr-xbin/ct8
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>
diff --git a/bin/ct b/bin/ct
index 8fd73fb..1464c64 100755
--- a/bin/ct
+++ b/bin/ct
@@ -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} ${*}