From a48860d63eca8f14b2a5ffd103ddc090228cf45c Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sat, 25 Aug 2007 00:13:04 -0600 Subject: [PATCH] setarch: also deliver man page links for all the variants Signed-off-by: LaMont Jones --- sys-utils/Makefile.am | 1 + sys-utils/setarch.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index 9e779b1e..cf6d87e2 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -75,4 +75,5 @@ install-exec-hook: done for I in $(SETARCH_LINKS); do \ cd $(DESTDIR)$(usrbinexecdir) && ln -sf setarch $$I ; \ + cd $(DESTDIR)$(man8dir) && ln -sf ../man8/setarch.8 $${I}.8; \ done diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 9e44f5f3..6b695ae4 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -211,6 +211,11 @@ int main(int argc, char *argv[]) if (!strcmp(arg, "--help")) show_help(); + if (!strcmp(arg, "--3gb")) + arg="-3"; + else if (!strcmp(arg, "--4gb")) + continue; /* just ignore this one */ + for (n = 1; arg[n]; n++) { int f; -- 2.39.5