|
Last change
on this file since 7 was 6, checked in by Bruno Cornec, 19 years ago |
|
Ok seems better interm of organization with AppConfig usage
|
-
Property svn:executable
set to
*
|
|
File size:
518 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/perl -w
|
|---|
| 2 | #
|
|---|
| 3 | # Project Builder main application
|
|---|
| 4 | #
|
|---|
| 5 | # $Id$
|
|---|
| 6 | #
|
|---|
| 7 | # Copyright B. Cornec 2007
|
|---|
| 8 | # Provided under the GPL v2
|
|---|
| 9 |
|
|---|
| 10 | use strict;
|
|---|
| 11 | use Switch;
|
|---|
| 12 | use Getopt::Std;
|
|---|
| 13 |
|
|---|
| 14 | use lib qw (lib etc);
|
|---|
| 15 | use vars qw (%defpkgdir %extpkgdir @version);
|
|---|
| 16 | use common qw (set_env);
|
|---|
| 17 | use pb qw (defpkgdir extpkgdir version pb_init);
|
|---|
| 18 | use cms;
|
|---|
| 19 |
|
|---|
| 20 | my %opts; # CLI Options
|
|---|
| 21 |
|
|---|
| 22 | getopts('p:',\%opts);
|
|---|
| 23 |
|
|---|
| 24 | # Handles project name if any
|
|---|
| 25 | if (defined $opts{'p'}) {
|
|---|
| 26 | set_env($opts{'p'});
|
|---|
| 27 | } else {
|
|---|
| 28 | set_env();
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | print "PBPROJ: $ENV{'PBPROJ'}\n";
|
|---|
| 32 |
|
|---|
| 33 | cms_init();
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.