From 8d7f6c94a3458328b339b6582592b6c1fecec950 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Sun, 11 Aug 2013 17:29:01 +0200 Subject: Add the COPY_ALWAYS option The suite now honors the `COPY_ALWAYS` option in rcrc(5). This can be set to a space-separated list of file globs. Any file matching a glob is copied instead of symlinked. This is handy both for secure programs (`netrc`, `ssh/id_*`) and for programs that oddly re-write files (`weechat/*`). To always copy everything, use the `*` glob. This is reflected throughout the suite as follows: * lsrc now has a `-F` option which shows a symbol to indicate whether it is a symlink (`@`) or a copy (`X`). * rcdn only removes symlinks unless the file under question matches a `COPY_ALWAYS` glob, in which case it is removed regardless of whether it is a symlink. * rcup will copy instead of symlinking any file that matches any `COPY_ALWAYS` glob. --- man/rcup.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'man/rcup.1') diff --git a/man/rcup.1 b/man/rcup.1 index 0b265ab..99fa364 100644 --- a/man/rcup.1 +++ b/man/rcup.1 @@ -76,7 +76,13 @@ will be installed into \&. .Pp Files are installed as symlinks. Directories are installed by making -directories. +directories. The +.Fl C +flag causes files to be installed as copies instead of symlinks. The +.Va COPY_ALWAYS +option in +.Xr rcrc 5 +can be used to list files that must only be copied. .Pp Two meta files are supported: host-specific files and tagged files. .Pp -- cgit v1.2.3