| 1 | #!/usr/bin/env perl |
|---|
| 2 | # ------------------------------------------------------------------------------ |
|---|
| 3 | # Copyright (C) 2006-2021 British Crown (Met Office) & Contributors. |
|---|
| 4 | # |
|---|
| 5 | # This file is part of FCM, tools for managing and building source code. |
|---|
| 6 | # |
|---|
| 7 | # FCM is free software: you can redistribute it and/or modify |
|---|
| 8 | # it under the terms of the GNU General Public License as published by |
|---|
| 9 | # the Free Software Foundation, either version 3 of the License, or |
|---|
| 10 | # (at your option) any later version. |
|---|
| 11 | # |
|---|
| 12 | # FCM is distributed in the hope that it will be useful, |
|---|
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | # GNU General Public License for more details. |
|---|
| 16 | # |
|---|
| 17 | # You should have received a copy of the GNU General Public License |
|---|
| 18 | # along with FCM. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 19 | # ------------------------------------------------------------------------------ |
|---|
| 20 | use strict; |
|---|
| 21 | use warnings; |
|---|
| 22 | |
|---|
| 23 | use FindBin; |
|---|
| 24 | use lib "$FindBin::Bin/../lib"; |
|---|
| 25 | use FCM::CLI; |
|---|
| 26 | |
|---|
| 27 | our $GUI; |
|---|
| 28 | |
|---|
| 29 | # ------------------------------------------------------------------------------ |
|---|
| 30 | if (!caller()) { |
|---|
| 31 | main(@ARGV); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | # ------------------------------------------------------------------------------ |
|---|
| 35 | sub main { |
|---|
| 36 | my @args = @_; |
|---|
| 37 | local $ENV{'PATH'} = $ENV{'PATH'}; |
|---|
| 38 | if (index($ENV{'PATH'}, $FindBin::Bin . ':') != 0) { |
|---|
| 39 | $ENV{'PATH'} = $FindBin::Bin . ':' . $ENV{'PATH'}; |
|---|
| 40 | } |
|---|
| 41 | my $gui; |
|---|
| 42 | if (@args && $args[0] eq 'gui-internal') { |
|---|
| 43 | (undef, $gui, @args) = @args; |
|---|
| 44 | } |
|---|
| 45 | FCM::CLI->new({'gui' => $gui})->main(@args); |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | __END__ |
|---|
| 49 | |
|---|
| 50 | =head1 NAME |
|---|
| 51 | |
|---|
| 52 | fcm |
|---|
| 53 | |
|---|
| 54 | =head1 SYNOPSIS |
|---|
| 55 | |
|---|
| 56 | fcm [APPLICATION] [OPTIONS] [ARGUMENTS] |
|---|
| 57 | |
|---|
| 58 | =head1 OVERVIEW |
|---|
| 59 | |
|---|
| 60 | B<fcm> is the command line interface of the Flexible Configuration Management |
|---|
| 61 | (FCM) system. For full detail of the system, please refer to the FCM user |
|---|
| 62 | guide, which you should receive with this distribution in both HTML and PDF |
|---|
| 63 | formats. |
|---|
| 64 | |
|---|
| 65 | Run "fcm help" to access the built-in tool documentation. |
|---|
| 66 | |
|---|
| 67 | =head1 ARGUMENTS |
|---|
| 68 | |
|---|
| 69 | B<fcm> provides the following applications: |
|---|
| 70 | |
|---|
| 71 | branch-create, bcreate, bc |
|---|
| 72 | branch-delete, bdelete, bdel, brm |
|---|
| 73 | branch-diff, bdiff, bdi |
|---|
| 74 | branch-info, binfo |
|---|
| 75 | branch-list, bls |
|---|
| 76 | browse, trac, www |
|---|
| 77 | build |
|---|
| 78 | cfg-print, cfg |
|---|
| 79 | cmp-ext-cfg |
|---|
| 80 | conflicts, cf |
|---|
| 81 | export-items |
|---|
| 82 | extract |
|---|
| 83 | gui |
|---|
| 84 | keyword-print, kp |
|---|
| 85 | loc-layout |
|---|
| 86 | make |
|---|
| 87 | mkpatch |
|---|
| 88 | test-battery |
|---|
| 89 | |
|---|
| 90 | B<fcm> overrides the following B<svn> applications: |
|---|
| 91 | |
|---|
| 92 | add |
|---|
| 93 | commit, ci |
|---|
| 94 | delete, del, remove, rm |
|---|
| 95 | diff, di |
|---|
| 96 | merge |
|---|
| 97 | switch, sw |
|---|
| 98 | update, up |
|---|
| 99 | |
|---|
| 100 | B<fcm> explicitly doesn't support the following B<svn> applications: |
|---|
| 101 | |
|---|
| 102 | changelist |
|---|
| 103 | |
|---|
| 104 | Type "fcm help APPLICATION" for help on individual application. |
|---|
| 105 | |
|---|
| 106 | Type "svn help APPLICATION" for help on other B<svn> application. |
|---|
| 107 | |
|---|
| 108 | =head1 AUTHOR |
|---|
| 109 | |
|---|
| 110 | FCM Team L<metomi@metoffice.gov.uk>. |
|---|
| 111 | Please feedback any bug reports or feature requests to us by e-mail. |
|---|
| 112 | |
|---|
| 113 | =head1 SEE ALSO |
|---|
| 114 | |
|---|
| 115 | L<svn (1)|svn>, |
|---|
| 116 | L<perl (1)| perl>, |
|---|
| 117 | L<FCM::CLI|FCM::CLI> |
|---|
| 118 | |
|---|
| 119 | =head1 COPYRIGHT |
|---|
| 120 | |
|---|
| 121 | FCM is free software: you can redistribute it and/or modify |
|---|
| 122 | it under the terms of the GNU General Public License as published by |
|---|
| 123 | the Free Software Foundation, either version 3 of the License, or |
|---|
| 124 | (at your option) any later version. |
|---|
| 125 | |
|---|
| 126 | FCM is distributed in the hope that it will be useful, |
|---|
| 127 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 128 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 129 | GNU General Public License for more details. |
|---|
| 130 | |
|---|
| 131 | You should have received a copy of the GNU General Public License |
|---|
| 132 | along with FCM. If not, see L<http://www.gnu.org/licenses/>. |
|---|
| 133 | |
|---|
| 134 | =cut |
|---|