Last change
on this file since 1709 was 1064, checked in by Bruno Cornec, 14 years ago |
r3931@dhcp184-49-175-19: bruno | 2010-06-26 08:02:59 +0200
- Adds the notion of os at the top in order to provide an even better tuple management
|
-
Property svn:executable
set to
*
|
File size:
762 bytes
|
Rev | Line | |
---|
[262] | 1 | #!/usr/bin/perl -w
|
---|
| 2 |
|
---|
| 3 | # Script to be used as pbscript to install pb in VMs
|
---|
| 4 |
|
---|
| 5 | use strict;
|
---|
| 6 | use File::Basename;
|
---|
| 7 | use ProjectBuilder::Distribution qw (pb_distro_init);
|
---|
| 8 |
|
---|
| 9 | # To adapt
|
---|
[311] | 10 | my $pbver= "devel";
|
---|
[262] | 11 |
|
---|
[1064] | 12 | my ($ddir, $dver, $dfam, $dtype, $dos, $dsuf) = pb_distro_init();
|
---|
[262] | 13 |
|
---|
| 14 | print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $dsuf))."\n";
|
---|
| 15 |
|
---|
| 16 | # Get and install pb
|
---|
| 17 | if ( $dtype eq "rpm" ) {
|
---|
[311] | 18 | system "sudo rpm -Uvh --force --nodeps ftp://ftp.project-builder.org/$ddir/$dver/test/project-builder-$pbver-1$dsuf.noarch.rpm"
|
---|
[262] | 19 | } elsif ( $dtype eq "deb" ) {
|
---|
[311] | 20 | system "wget ftp://ftp.project-builder.org/$ddir/$dver/test/project-builder_".$pbver."_all.deb ; sudo dpkg -i project-builder_".$pbver."_all.deb";
|
---|
[262] | 21 | } elsif ( $dfam eq "gen" ) {
|
---|
| 22 | } else {
|
---|
| 23 | print "No pkg to install\n";
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.