Changeset 162 in ProjectBuilder for devel


Ignore:
Timestamp:
Sep 29, 2007, 9:57:43 AM (17 years ago)
Author:
Bruno Cornec
Message:

Allow the usage of another port to communicate with the VM
Example script now mkdir /home if it doesn't exist

Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r158 r162  
    4343my $debug = 0;
    4444my $pbaccount;              # Login to use to connect to the VM
     45my $pbport;                 # Port to use to connect to the VM
    4546my $LOG = \*STDOUT;
    4647
    47 getopts('a:hl:m:p:qr:s:tv',\%opts);
     48getopts('a:hl:m:P:p:qr:s:tv',\%opts);
    4849
    4950my ($projectbuilderver,$projectbuilderrev) = pb_version_init();
     
    8384if (defined $opts{'a'}) {
    8485    $pbaccount = $opts{'a'};
     86}
     87if (defined $opts{'P'}) {
     88    $pbport = $opts{'P'};
    8589}
    8690
     
    488492    # Overwrite account value if passed as parameter
    489493    $mac = "$pbaccount\@$sshhost->{$ENV{'PBPROJ'}}" if (defined $pbaccount);
     494    $port = "$pbport" if (defined $pbport);
    490495    my $tdir;
    491496    my $bdir;
  • devel/pb/contrib/pbsetupqemu

    r159 r162  
    1616grep -Eq '^pb:' /etc/passwd
    1717if [ $? -ne 0 ]; then
     18    if [ ! -d /home ]; then
     19        mkdir /home
     20    fi
    1821    su - -c "useradd pb"
    1922fi
     
    3437if [ -x /usr/bin/yum ]; then
    3538    yum clean all
    36     #yum -y install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs perl-AppConfig perl-DateManip
     39    yum -y install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs perl-AppConfig perl-DateManip
    3740elif [ -x /usr/sbin/urpmi ]; then
    3841    urpmi --auto-select neon newt-devel slang-devel glibc-static-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo mkisofs cdrecord perl-AppConfig perl-DateManip
Note: See TracChangeset for help on using the changeset viewer.