summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-18 18:32:33 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-18 18:32:33 +0200
commita7133ed7c1aea6ecce94c4a37e6f8eb3985b1aba (patch)
tree00f891d9f8c18114512202e47022b691fc54ba2d /bin
parenta16ca4cce9fa06ef37ff56ffee69b320fe071829 (diff)
Added status messages to checklinks(1)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/checklinks49
1 files changed, 49 insertions, 0 deletions
diff --git a/bin/checklinks b/bin/checklinks
index 8e478b3..ed6165b 100755
--- a/bin/checklinks
+++ b/bin/checklinks
@@ -163,6 +163,55 @@ and $etc will be set to $package/etc (like C<packages/core/etc>)
=back
+=head1 OUTPUT
+
+Typical checklinks output might look like this:
+
+ ok .zshrc -> packages/zsh/etc/rc
+ ok .zprofile -> packages/zsh/etc/profile
+ absolute .zlogin -> packages/zsh/etc/login
+ created .zlogout -> packages/zsh/etc/logout
+ ok .zshenv -> packages/zsh/etc/env
+
+The first item is the status, the second the link source (as in, the link),
+the third the link target.
+
+The following status messages are possible:
+
+=over
+
+=item ok
+
+The link exists and points to the right file
+
+=item absolute (soft links only)
+
+The link exists and points to the right file, however it is an absolute link
+
+=item fixed (soft links only)
+
+The link pointed to the wrong file and has been corrected
+
+=item updated (hard links only)
+
+The source existed, but was not identical to the target. It has been deleted
+and replaced with a link to the target
+
+=item created
+
+The link did not exist and has been created
+
+=item EXISTS (soft links only)
+
+The source already exists, but is not a symlink
+
+=item no dest
+
+The link destination does not exist
+
+=back
+
+
=head1 FILES
The symlink definitions are read from the file F<.links> or F<links> in the