]> err.no Git - util-linux/commitdiff
setarch: also deliver man page links for all the variants
authorLaMont Jones <lamont@mmjgroup.com>
Sat, 25 Aug 2007 06:13:04 +0000 (00:13 -0600)
committerLaMont Jones <lamont@mmjgroup.com>
Sat, 25 Aug 2007 06:16:03 +0000 (00:16 -0600)
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
sys-utils/Makefile.am
sys-utils/setarch.c

index 9e779b1e849487477c9b5c215768184c80b9935c..cf6d87e22ab0fee9500eeeda15b655f90be1a517 100644 (file)
@@ -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
index 9e44f5f35fedb8744b7d9226dc7988f34406d2fb..6b695ae4544ed988739f3ec9f411bf7d8f570cbc 100644 (file)
@@ -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;