/
spoc2
executable file
·59 lines (38 loc) · 1.61 KB
/
spoc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/perl
=head1 NAME
spoc2 - Optimizing second pass of Netspoc
=head1 SYNOPSIS
spoc2 [options] in-file-or-directory CODE-DIR
=head1 OPTIONS
See options of program 'netspoc'.
=back
=head1 DESCRIPTION
Generate code files from intermediate files in CODE-DIR.
Reads files X.rules and X.config and writes file X.
X.rules file contains rules in device independent format.
X.config file is incomplete device configuration.
Optimize rules and generate access-lists in device specific format.
Combine imcomplete device configuration with access-lists into complete
device configuration.
=head1 COPYRIGHT AND DISCLAIMER
(C) 2015 by Heinz Knutzen <heinz.knutzen@googlemail.com>
http://hknutzen.github.com/Netspoc
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
=cut
use strict;
use warnings;
use Netspoc::Compiler::Pass2;
our $VERSION = '4.6'; # VERSION: inserted by DZP::OurPkgVersion
my $program = 'Netspoc';
my $version = __PACKAGE__->VERSION || 'devel';
Netspoc::Compiler::Pass2::compile(\@ARGV);