Changeset 649 in MondoRescue for trunk/tools
- Timestamp:
- Jun 8, 2006, 11:31:13 AM (18 years ago)
- Location:
- trunk/tools
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/DISTROS
r618 r649 9 9 rhel_4 10 10 suse_10.0 11 suse_10.1 11 12 sles_9 12 13 gentoo_2006 -
trunk/tools/common-env
r588 r649 12 12 export TMPDIR= 13 13 export TMP=`mktemp -d -p /tmp` 14 15 umask 022 -
trunk/tools/mknewtag
r618 r649 35 35 nb=`svn diff $TOOLHOME/.. | wc -l` 36 36 if [ $nb -gt 0 ]; then 37 echo "You'll have to check in orderbefore updating the TAG"37 echo "You'll have to check in before updating the TAG" 38 38 echo "$TAG" > $TOOLHOME/TAG 39 39 else 40 for p in mindi mondo; do 41 grep -q "${VER}-${TAG}" $TOOLHOME/../$p/Changelog 42 if [ $? -ne 0 ]; then 43 echo "You'll have to document in ${p}'s Changelog for ${VER}-${TAG} related modifications" 44 exit -1 45 fi 46 done 40 47 echo "$TAG" > $TOOLHOME/TAG 41 48 (cd $TOOLHOME/.. ; svn ci -m "Automatic update of TAG to $TAG" ; svn up) -
trunk/tools/pkg2mdv
r600 r649 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 -
trunk/tools/qemu-vm.txt
r600 r649 4 4 5 5 # RPM based : urpmi, yum install, yast2 6 neon newt-devel slang-devel autoconf automake subversion libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man docbook-dtd41-sgml groff lynx6 neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim-X11 gcc-c++ docbook-utils-pdf ImageMagick man patch 7 7 8 8 # gentoo … … 47 47 mkdir -p mondo/tmp build 48 48 cat > ~bruno/.rpmmacros << EOF 49 %_topdir / home/bruno/build49 %_topdir /users/bruno/build 50 50 %_tmppath %{_topdir}/tmp 51 51 %packager Bruno Cornec <bruno@mondorescue.org> … … 72 72 wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm 73 73 rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm 74 rpmbuild -ba RPMS/SPECS/afio.spec 75 rpmbuild -ba RPMS/SPECS/buffer.spec 76 chmod 644 RPMS/RPMS/i386/* 77 scp -p RPMS/RPMS/i386/afio-[0-9]* RPMS/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/ 74 mkdir -p build/BUILD build/RPMS/i386 75 rpmbuild -ba build/SPECS/afio.spec 76 rpmbuild -ba build/SPECS/buffer.spec 77 chmod 644 build/RPMS/i386/* 78 scp -p build/RPMS/i386/afio-[0-9]* build/RPMS/i386/buffer-[0-9]* ftp.mondorescue.org:/mondo/ftp/rhel/3/ 78 79 79 80 -
trunk/tools/svn2build
r600 r649 6 6 # 7 7 8 umask 0229 8 dname=`dirname $0` 10 9 prem=`echo $dname |cut -c1` … … 75 74 m4 /tmp/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec 76 75 77 if [ -f $dest/distributions/$ddir/changelog ]; then 78 log=$dest/distributions/$ddir/changelog 79 elif [ -f $dest/distributions/$dfam/changelog ]; then 80 log=$dest/distributions/$dfam/changelog 81 else 82 echo "Unable to build RPM changelog for this distro. Please report to authors" 76 $TOOLHOME/mkchangelog.pl $dtype $p $dest/distributions/${ddir}-$dver/$p.spec 77 if [ $? -ne 0 ]; then 78 echo "Unable to create changelog for ${ddir}-$dver/$p.spec" 83 79 exit -1 84 80 fi 85 81 86 echo "Using $log customization to build changelog file"87 82 ddate=`LANG=C ; date "+%a %b %d %Y"` 88 83 cat > $dest/distributions/${ddir}-$dver/$p.changelog.new << EOF … … 91 86 92 87 EOF 93 cat $log >> $dest/distributions/${ddir}-$dver/$p.changelog.new94 m4 /tmp/mondorescue.mc $dest/distributions/${ddir}-$dver/$p.changelog.new >> $dest/distributions/${ddir}-${dver}/$p.spec95 rm -f $dest/distributions/${ddir}-$dver/$p.changelog.new96 97 88 elif [ "$dtype" = "ebuild" ]; then 98 89 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild
Note:
See TracChangeset
for help on using the changeset viewer.