source: devel/pb/contrib/installpb @ 262

Last change on this file since 262 was 262, checked in by Bruno Cornec, 12 years ago

Fix bug #7 where .pbrc nearly empty wasn't working

  • Property svn:executable set to *
File size: 746 bytes
Line 
1#!/usr/bin/perl -w
2
3# Script to be used as pbscript to install pb in VMs
4
5use strict;
6use File::Basename;
7use ProjectBuilder::Distribution qw (pb_distro_init);
8
9# To adapt
10my $pbver= "0.8.8";
11
12my ($ddir, $dver, $dfam, $dtype, $dsuf) = pb_distro_init(); 
13
14print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $dsuf))."\n";
15
16# Get and install pb
17if ( $dtype eq "rpm" ) {
18    system "sudo rpm -Uvh --force --nodeps ftp://ftp.project-builder.org/$ddir/$dver/project-builder-$pbver-1$dsuf.noarch.rpm"
19} elsif ( $dtype eq "deb" ) {
20        system "wget ftp://ftp.project-builder.org/$ddir/$dver/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.