OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [busdefs/] [create_busdefs] - Blame information for rev 135

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
eval 'exec `which perl` -S $0 ${1+"$@"}'
2
   if 0;
3
 
4 135 jt_eaton
#/****************************************************************************/
5
#/*                                                                          */
6
#/*   SOCGEN Design for Reuse toolset                                        */
7
#/*                                                                          */
8
#/*   Version 1.0.0                                                          */
9
#/*                                                                          */
10
#/*   Author(s):                                                             */
11
#/*      - John Eaton, z3qmtr45@gmail.com                                    */
12
#/*                                                                          */
13
#/****************************************************************************/
14
#/*                                                                          */
15
#/*                                                                          */
16
#/*             Copyright 2016 John T Eaton                                  */
17
#/*                                                                          */
18
#/* Licensed under the Apache License, Version 2.0 (the "License");          */
19
#/* you may not use this file except in compliance with the License.         */
20
#/* You may obtain a copy of the License at                                  */
21
#/*                                                                          */
22
#/*    http://www.apache.org/licenses/LICENSE-2.0                            */
23
#/*                                                                          */
24
#/* Unless required by applicable law or agreed to in writing, software      */
25
#/* distributed under the License is distributed on an "AS IS" BASIS,        */
26
#/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
27
#/* See the License for the specific language governing permissions and      */
28
#/* limitations under the License.                                           */
29
#/*                                                                          */
30
#/*                                                                          */
31
#/****************************************************************************/
32 131 jt_eaton
 
33 135 jt_eaton
 
34 131 jt_eaton
use Getopt::Long;
35
use English;
36
use File::Basename;
37
use Cwd;
38
use XML::LibXML;
39
use lib './tools';
40
use sys::lib;
41
use yp::lib;
42
use BerkeleyDB;
43
 
44
 
45
$OUTPUT_AUTOFLUSH = 1; # set autoflush of stdout to TRUE.
46
 
47
my $parser = XML::LibXML->new();
48
my $home    = cwd();
49
 
50
 
51
#/*********************************************************************************************/
52
#/                                                                                            */
53
#/                                                                                            */
54
#/                                                                                            */
55
#/                                                                                            */
56
#/*********************************************************************************************/
57
 
58
 
59
my @abstractionDefinitions = yp::lib::find_abstractionDefinitions();
60
 
61
my $version;
62
my $component;
63
my $library;
64
my $vendor;
65
 
66
 
67
foreach my $abstractionDefinition (@abstractionDefinitions)
68
{
69
 ( $vendor,$library, $component ,$version) = split ':', $abstractionDefinition;
70
   print "AbsDef ${vendor} ${library} ${component} ${version} \n";
71
   $cmd = "./tools/busdefs/gen_busdef    -vendor $vendor -library $library -component $component  -version $version   ";
72
   if (system($cmd)) {}
73
}
74
 
75
 
76
 
77
 
78
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.