From: LaMont Jones Date: Sat, 25 Aug 2007 06:13:04 +0000 (-0600) Subject: setarch: also deliver man page links for all the variants X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a48860d63eca8f14b2a5ffd103ddc090228cf45c;p=util-linux setarch: also deliver man page links for all the variants Signed-off-by: LaMont Jones --- 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;