Changeset 657 in MondoRescue for branches/2.0.8/tools/svn2build
- Timestamp:
- Jun 9, 2006, 1:06:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.