-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.pl
65 lines (51 loc) · 1.45 KB
/
main.pl
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
60
61
62
63
64
65
#!/usr/bin/perl
use warnings;
use strict;
use lib ".";
use releasepackager;
use filemanager;
use billofmaterials;
use logger;
use utils;
sub main()
{
print "Create Instance of FileManager [press enter]\n";
<STDIN>;
FileManager->new();
print "read ignore list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->readIgnoreList();
print "print ignore list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->printIgnoreList();
print "read exception list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->readExceptionList();
print "print exception list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->printExceptionList();
print "get license list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->getLicenseList();
print "print license list [press enter]\n";
<STDIN>;
BillOfMaterials->new()->printLicenseList();
print "read directory contents to array [press enter]\n";
<STDIN>;
FileManager->new()->getDirectory( $Utils::sourcePath );
print "Print directory contents [press enter]\n";
<STDIN>;
print "FILES FOUND IN $Utils::sourcePath AND ITS SUBDIRECTORIES\n\n";
FileManager->new()->printFilesList();
print "Change Files [press enter]\n";
<STDIN>;
FileManager->new()->changeFiles();
print "Tidy the Wind River log file? [y/n]\n";
chomp(my $response = <STDIN>);
if($response eq 'y')
{
Logger->new->tidy();
#system("grep -v -B 1 "*@windriver\.com" FileManager->new()->readFile( Logger->new->{ _windLogFilePath } ");
}
}
main();