New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
fcm in vendors/FCM-2017.10.0/bin – NEMO

source: vendors/FCM-2017.10.0/bin/fcm @ 10672

Last change on this file since 10672 was 10672, checked in by nicolasmartin, 5 years ago

Reimport latest FCM release

File size: 3.5 KB
Line 
1#!/usr/bin/env perl
2# ------------------------------------------------------------------------------
3# (C) British Crown Copyright 2006-17 Met Office.
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# ------------------------------------------------------------------------------
20use strict;
21use warnings;
22
23use FindBin;
24use lib "$FindBin::Bin/../lib";
25use FCM::CLI;
26
27our $GUI;
28
29# ------------------------------------------------------------------------------
30if (!caller()) {
31    main(@ARGV);
32}
33
34# ------------------------------------------------------------------------------
35sub 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
52fcm
53
54=head1 SYNOPSIS
55
56    fcm [APPLICATION] [OPTIONS] [ARGUMENTS]
57
58=head1 OVERVIEW
59
60B<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
62guide, which you should receive with this distribution in both HTML and PDF
63formats.
64
65Run "fcm help" to access the built-in tool documentation.
66
67=head1 ARGUMENTS
68
69B<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
90B<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
100B<fcm> explicitly doesn't support the following B<svn> applications:
101
102    changelist
103
104Type "fcm help APPLICATION" for help on individual application.
105
106Type "svn help APPLICATION" for help on other B<svn> application.
107
108=head1 AUTHOR
109
110FCM Team L<metomi@metoffice.gov.uk>.
111Please feedback any bug reports or feature requests to us by e-mail.
112
113=head1 SEE ALSO
114
115L<svn (1)|svn>,
116L<perl (1)| perl>,
117L<FCM::CLI|FCM::CLI>
118
119=head1 COPYRIGHT
120
121FCM is free software: you can redistribute it and/or modify
122it under the terms of the GNU General Public License as published by
123the Free Software Foundation, either version 3 of the License, or
124(at your option) any later version.
125
126FCM is distributed in the hope that it will be useful,
127but WITHOUT ANY WARRANTY; without even the implied warranty of
128MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
129GNU General Public License for more details.
130
131You should have received a copy of the GNU General Public License
132along with FCM. If not, see L<http://www.gnu.org/licenses/>.
133
134=cut
Note: See TracBrowser for help on using the repository browser.