| 585 | } |
| 586 | |
| 587 | void |
| 588 | usage (int status) |
| 589 | { |
| 590 | if (status != EXIT_SUCCESS) |
| 591 | emit_try_help (); |
| 592 | else |
| 593 | { |
| 594 | printf (_("\ |
| 595 | Usage: %s [OPTION]... [-T] SOURCE DEST\n\ |
| 596 | or: %s [OPTION]... SOURCE... DIRECTORY\n\ |
| 597 | or: %s [OPTION]... -t DIRECTORY SOURCE...\n\ |
| 598 | or: %s [OPTION]... -d DIRECTORY...\n\ |
| 599 | "), |
| 600 | program_name, program_name, program_name, program_name); |
| 601 | fputs (_("\ |
| 602 | \n\ |
| 603 | This install program copies files (often just compiled) into destination\n\ |
| 604 | locations you choose. If you want to download and install a ready-to-use\n\ |
| 605 | package on a GNU/Linux system, you should instead be using a package manager\n\ |
| 606 | like yum(1) or apt-get(1).\n\ |
| 607 | \n\ |
| 608 | In the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to\n\ |
| 609 | the existing DIRECTORY, while setting permission modes and owner/group.\n\ |
| 610 | In the 4th form, create all components of the given DIRECTORY(ies).\n\ |
| 611 | "), stdout); |
| 612 | |
| 613 | emit_mandatory_arg_note (); |
| 614 | |
| 615 | oputs (_("\ |
| 616 | --backup[=CONTROL]\n\ |
| 617 | make a backup of each existing destination file\n\ |
| 618 | ")); |
| 619 | oputs (_("\ |
| 620 | -b\n\ |
| 621 | like --backup but does not accept an argument\n\ |
| 622 | ")); |
| 623 | oputs (_("\ |
| 624 | -c\n\ |
| 625 | (ignored)\n\ |
| 626 | ")); |
| 627 | oputs (_("\ |
| 628 | -C, --compare\n\ |
| 629 | compare content of source and destination files,\n\ |
| 630 | and if no change to content, ownership, and permissions,\n\ |
| 631 | do not modify the destination at all\n\ |
| 632 | ")); |
| 633 | oputs (_("\ |
| 634 | -d, --directory\n\ |
| 635 | treat all arguments as directory names;\n\ |
| 636 | create all components of the specified directories\n\ |
| 637 | ")); |
| 638 | oputs (_("\ |
| 639 | -D\n\ |
| 640 | create all leading components of DEST except the last,\n\ |
| 641 | or all components of --target-directory,\n\ |
| 642 | then copy SOURCE to DEST\n\ |
| 643 | ")); |
| 644 | oputs (_("\ |
no test coverage detected