From 8c26bfec32441830b4a0e5938a6cc7de1a64ff99 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Mon, 5 May 2014 11:08:02 +0200 Subject: Add a hostname override Based on issue #82, we now provide `-B` to override the hostname. In particular: - `mkrc -B foo` will enable `-o` but with the hostname set up `foo`. - `lsrc -B foo` will work like normal `lsrc` except it treats `host-foo` as the host-specific directory. - `rcup -B foo` will run a normal `rcup` except `host-foo` is the host-specific directory. - `rcdn -B foo` is just like normal `rcdn`, but with `host-foo` as the host-specific directory. The `HOSTNAME` can also be set in the rcrc(5), and this is overridden by the aforementioned `-B`. While making this change: The `test/Makefile.am` used a mix of tabs and spaces. Since it's a Makefile, replace it all with tabs. --- man/rcdn.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man/rcdn.1') diff --git a/man/rcdn.1 b/man/rcdn.1 index fa0b60b..b7f7554 100644 --- a/man/rcdn.1 +++ b/man/rcdn.1 @@ -7,6 +7,7 @@ .Sh SYNOPSIS .Nm rcdn .Op Fl kKvq +.Op Fl B Ar hostname .Op Fl d Ar dir .Op Fl I Ar excl_pat .Op Fl t Ar tag @@ -43,6 +44,10 @@ These hooks are run each time is run and therefore must be idempotent. . .Bl -tag -width "-I EXCL_PAT" +.It Fl B Ar HOSTNAME +treat +.Pa host-HOSTNAME +as the host-specific directory instead of computing it .It Fl d Ar DIR remove rc files from the .Ar DIR . -- cgit v1.2.3