Changeset 657 in MondoRescue
- Timestamp:
- Jun 9, 2006, 1:06:23 AM (18 years ago)
- Location:
- branches/2.0.8/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0.8/tools/build2pkg
r655 r657 67 67 pkg="$pkg $pkg1" 68 68 69 log= /tmp/$p-rpm.log69 log=$TMP/$p-rpm.log 70 70 71 71 if [ "$dfam" = "mandriva" ]; then … … 90 90 cd .. 91 91 elif [ _"$dtype" = _"ebuild" ]; then 92 log= /tmp/$p-gentoo.log92 log=$TMP/$p-gentoo.log 93 93 ln -sf $src . 94 94 tar xfz $src $pv/distributions/${ddir}-$dver/$p-${VER}-r$TAG.ebuild … … 124 124 fi 125 125 elif [ _"$dtype" = _"deb" ]; then 126 log= /tmp/$p-deb.log126 log=$TMP/$p-deb.log 127 127 cd $TOPBUILDDIR 128 128 tar xfz $src 129 129 cd ${pv}* 130 ln -s distributions/debian debian131 # update debian/changelog130 # point to the right debian conf 131 ln -s distributions/${ddir}-$dver debian 132 132 dpkg-buildpackage -us -uc -rfakeroot 133 133 # Et voila ! -
branches/2.0.8/tools/svn2build
r642 r657 54 54 55 55 ddd=`LANG=C ; date '+%Y-%m-%d'` 56 cat > /tmp/mondorescue.mc << EOF56 cat > $TMP/mondorescue.mc << EOF 57 57 define(\`TTT', ${TAG})dnl 58 58 define(\`RRR', ${TAG}${suf})dnl … … 72 72 fi 73 73 echo "Using $inc customization to build SPEC file" 74 m4 /tmp/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec74 m4 $TMP/mondorescue.mc $inc $dest/distributions/rpm/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec 75 75 76 $TOOLHOME/mkchangelog.pl $dtype $p /tmp/$p.spec76 $TOOLHOME/mkchangelog.pl $dtype $p $TMP/$p.spec 77 77 if [ $? -ne 0 ]; then 78 78 echo "Unable to create changelog for ${ddir}-$dver/$p.spec" 79 79 exit -1 80 80 fi 81 cat /tmp/$p.spec >> $dest/distributions/${ddir}-$dver/$p.spec82 rm -f /tmp/$p.spec81 cat $TMP/$p.spec >> $dest/distributions/${ddir}-$dver/$p.spec 82 rm -f $TMP/$p.spec 83 83 elif [ "$dtype" = "ebuild" ]; then 84 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild84 m4 $TMP/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v-r$TAG.ebuild 85 85 elif [ "$dtype" = "deb" ]; then 86 86 # To be developped 87 m4 /tmp/mondorescue.mc $dest/distributions/$dfam/$p > /dev/null 87 #m4 $TMP/mondorescue.mc $dest/distributions/$dfam/$p > /dev/null 88 $TOOLHOME/mkchangelog.pl $dtype $p $TMP/$p.chg 89 if [ $? -ne 0 ]; then 90 echo "Unable to create changelog for ${ddir}-$dver/$p.chg" 91 exit -1 92 fi 93 mv $TMP/$p.chg $dest/distributions/${ddir}-$dver/changelog 88 94 else 89 95 echo "Unknown Build" … … 94 100 cd $dest 95 101 for f in mondorescue-howto.sgml *8; do 96 m4 /tmp/mondorescue.mc $f > ${f}.new102 m4 $TMP/mondorescue.mc $f > ${f}.new 97 103 mv ${f}.new $f 98 104 done … … 134 140 done 135 141 136 rm -f /tmp/mondorescue.mc142 rm -f $TMP/mondorescue.mc 137 143 138 144 echo "Version delivered :"
Note:
See TracChangeset
for help on using the changeset viewer.