Changeset 627 in MondoRescue


Ignore:
Timestamp:
Jun 7, 2006, 11:29:04 AM (19 years ago)
Author:
bcornec
Message:

Mandriva delivery improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/pkg2mdv

    r596 r627  
    6262    # Use mkrel for mdv
    6363    perl -pi -e 's/define mrel[ \t]+([0-9]+)\..*/define mrel    %mkrel \$1/' rpm/SPECS/\$s
    64     perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org> ([0-9]+)\..*/define mrel   %mkrel \$1/' rpm/SPECS/\$s
     64    perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org> ([0-9]+.*)/ Bruno Cornec <bcornec@mandriva.org> %{version}-%{release}/' rpm/SPECS/\$s
     65    rm -rf rpm/BUILD/*
    6566    rpmbuild -ba rpm/SPECS/\$s 2>&1 | tee -a /tmp/mondorescue.log
    6667done
    6768apkg=\`egrep "^Wrote:" /tmp/mondorescue.log | grep -v debug | cut -d: -f2\`
    68 sudo ftpcontrib \$apkg
    69 rm -f $ppkg
     69aspkg=\`echo \$apkg | egrep "\.src.rpm"\`
     70for d in 2006 200664; do
     71    scp -p \$aspkg chroot\${d}:
     72    ssh chroot\${d} "for p in $aspkg; do rpm -ivh \`basename \$p\` ; rpmbuild -ba rpm/SPECS/\$s | tee -a /tmp/mondorescue.log ; done ; sudo ftp\${d}contrib \`egrep '^Wrote:' /tmp/mondorescue.log | grep -v debug | cut -d: -f2\`"
     73done
     74for p in \$apkg; do
     75    sudo ftpcontrib \$p
     76done
     77rm -f \$ppkg
    7078EOF
    7179chmod 755 /tmp/mkmondo
Note: See TracChangeset for help on using the changeset viewer.