Changeset 882 in MondoRescue for branches/stable/tools/svn2build
- Timestamp:
- Oct 8, 2006, 11:48:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/svn2build
r872 r882 38 38 v=`cat ${TOOLHOME}/../$p/VERSION` 39 39 echo "Management of $p $v-$TAG (rev $REVISION)" 40 dest="$ p-$v"40 dest="$DEST/$p-$v" 41 41 rm -fr $dest 42 42 svn export ${TOOLHOME}/../$p $dest … … 51 51 . $TOOLHOME/distro-env 52 52 53 # Create conf file dir54 mkdir -p ${BUILDDIR}55 56 53 ddd=`LANG=C ; date '+%Y-%m-%d'` 57 cat > $ TMP/mondorescue.mc << EOF54 cat > $MONDOTMP/mondorescue.mc << EOF 58 55 define(\`TTT', ${TAG})dnl 59 56 define(\`RRR', ${TAG}${suf})dnl … … 74 71 echo "Using $inc customization to build SPEC file" 75 72 76 $TOOLHOME/mkchangelog.pl $dtype $p $ TMP/$p.spec73 $TOOLHOME/mkchangelog.pl $dtype $p $MONDOTMP/$p.spec 77 74 if [ $? -ne 0 ]; then 78 75 echo "Unable to create changelog for ${ddir}-$dver/$p.spec" 79 76 exit -1 80 77 fi 81 m4 $ TMP/mondorescue.mc $inc $dest/distributions/rpm/$p.spec $TMP/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec78 m4 $MONDOTMP/mondorescue.mc $inc $dest/distributions/rpm/$p.spec $MONDOTMP/$p.spec > $dest/distributions/${ddir}-$dver/$p.spec 82 79 83 rm -f $ TMP/$p.spec80 rm -f $MONDOTMP/$p.spec 84 81 elif [ "$dtype" = "ebuild" ]; then 85 m4 $ TMP/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v.ebuild82 m4 $MONDOTMP/mondorescue.mc $dest/distributions/$dfam/$p.ebuild > $dest/distributions/${ddir}-$dver/$p-$v.ebuild 86 83 elif [ "$dtype" = "deb" ]; then 87 # To be developped88 #m4 $TMP/mondorescue.mc $dest/distributions/$dfam/$p > /dev/null89 84 cp -a $dest/distributions/$ddir/* $dest/distributions/${ddir}-$dver 90 m4 $ TMP/mondorescue.mc $dest/distributions/$ddir/rules > $dest/distributions/${ddir}-$dver/rules85 m4 $MONDOTMP/mondorescue.mc $dest/distributions/$ddir/rules > $dest/distributions/${ddir}-$dver/rules 91 86 $TOOLHOME/mkchangelog.pl $dtype $p $dest/distributions/${ddir}-$dver/changelog 92 87 if [ $? -ne 0 ]; then … … 99 94 done 100 95 96 # The rest is done there 97 cd $DEST 101 98 if [ _"`echo $p | grep mondo-doc`" != _"" ]; then 102 99 cd $dest 103 100 for f in mondorescue-howto.sgml *8; do 104 m4 $ TMP/mondorescue.mc $f > ${f}.new101 m4 $MONDOTMP/mondorescue.mc $f > ${f}.new 105 102 mv ${f}.new $f 106 103 done … … 122 119 exit -1 123 120 fi 124 (cd mondo-doc-$v1 ; make -f Makefile.man install-$p INSTALLDIR=../$ dest)121 (cd mondo-doc-$v1 ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v) 125 122 rm -f $dest/rootfs/sbin/parted2fdisk-ia64 126 123 fi … … 131 128 exit -1 132 129 fi 133 (cd mondo-doc-$v1 ; make -f Makefile.howto install INSTALLDIR=../$ dest/docs/en ; make -f Makefile.man install-$p INSTALLDIR=../$dest/docs/man)130 (cd mondo-doc-$v1 ; make -f Makefile.howto install INSTALLDIR=../$p-$v/docs/en ; make -f Makefile.man install-$p INSTALLDIR=../$p-$v/docs/man) 134 131 (cd $dest ; echo "Bootstraping mondo ... " ; ./bootstrap) 135 132 fi … … 137 134 # Finally creates the tar files 138 135 echo -n "Creating $p tar files (gzip... " 139 tar cfphz ${DEST}/$p-$v.tar.gz $ dest136 tar cfphz ${DEST}/$p-$v.tar.gz $p-$v 140 137 echo -n " bzip2..." 141 tar cfphj ${DEST}/$p-$v.tar.bz2 $ dest138 tar cfphj ${DEST}/$p-$v.tar.bz2 $p-$v 142 139 echo " )" 143 140 done 144 141 145 rm -rf $ TMP142 rm -rf $MONDOTMP 146 143 147 144 echo "Version delivered :"
Note:
See TracChangeset
for help on using the changeset viewer.