Changeset 627 in MondoRescue
- Timestamp:
- Jun 7, 2006, 11:29:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/pkg2mdv
r596 r627 62 62 # Use mkrel for mdv 63 63 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/* 65 66 rpmbuild -ba rpm/SPECS/\$s 2>&1 | tee -a /tmp/mondorescue.log 66 67 done 67 68 apkg=\`egrep "^Wrote:" /tmp/mondorescue.log | grep -v debug | cut -d: -f2\` 68 sudo ftpcontrib \$apkg 69 rm -f $ppkg 69 aspkg=\`echo \$apkg | egrep "\.src.rpm"\` 70 for 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\`" 73 done 74 for p in \$apkg; do 75 sudo ftpcontrib \$p 76 done 77 rm -f \$ppkg 70 78 EOF 71 79 chmod 755 /tmp/mkmondo
Note:
See TracChangeset
for help on using the changeset viewer.