Last change
on this file since 857 was 311, checked in by Bruno Cornec, 17 years ago |
Used devel version for VM management
|
-
Property svn:executable
set to
*
|
File size:
756 bytes
|
Line | |
---|
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
|
---|
10 | my $pbver= "devel";
|
---|
11 |
|
---|
12 | my ($ddir, $dver, $dfam, $dtype, $dsuf) = pb_distro_init();
|
---|
13 |
|
---|
14 | print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $dsuf))."\n";
|
---|
15 |
|
---|
16 | # Get and install pb
|
---|
17 | if ( $dtype eq "rpm" ) {
|
---|
18 | system "sudo rpm -Uvh --force --nodeps ftp://ftp.project-builder.org/$ddir/$dver/test/project-builder-$pbver-1$dsuf.noarch.rpm"
|
---|
19 | } elsif ( $dtype eq "deb" ) {
|
---|
20 | system "wget ftp://ftp.project-builder.org/$ddir/$dver/test/project-builder_".$pbver."_all.deb ; sudo dpkg -i project-builder_".$pbver."_all.deb";
|
---|
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.