Changeset 12 for devel/dploy


Ignore:
Timestamp:
05/16/07 20:09:04 (5 years ago)
Author:
bruno
Message:

First working version of the script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy/bin/mrepo-dploy.org

    r10 r12  
    8989 
    9090foreach $d (split(/ /,$distro)) { 
    91     my $distrodir="$mrepobasedir/$d"; 
    92     if (! (-d $distrodir)) { 
    93         printf "Unable to find $distrodir for distribution $d\n" ; 
    94         next; 
    95     } 
     91    #my $distrodir="$mrepobasedir/$d"; 
     92    #if (! (-d $distrodir)) { 
     93    #printf "Unable to find $distrodir for distribution $d\n" ; 
     94    #next; 
     95    #} 
    9696    print "Generating conf file for $d\n"; 
    9797    open(CONF, "> $mrepoconfdir/$d.conf") || die "Unable to create $mrepoconfdir/$d.conf: $!"; 
     
    121121            $iso =~ s/\$upd/$u/; 
    122122            $iso =~ s/\$version/$v/; 
     123            # For RHEL we should remove ux or Ux for base distro 
    123124            $iso =~ s/-[uU]0// if ($u eq 0); 
    124125            printf CONF "iso = $iso\n"; 
     
    177178system "rm -rf $wwwdir/*"; 
    178179print "Creating new mrepo environement\n"; 
    179 system "/usr/bin/mrepo -c $mrepoconffile -vvvvvv -g"; 
     180system "/usr/bin/mrepo -c $mrepoconffile -g"; 
    180181opendir(DIR, $wwwdir) || die "Unable to parse $wwwdir directory: $!"; 
    181182my @subdir = grep { ! /^\./ && -f "$_" } readdir(DIR); 
Note: See TracChangeset for help on using the changeset viewer.