Changeset 782 for trunk/tools


Ignore:
Timestamp:
Aug 12, 2006, 11:32:32 AM (13 years ago)
Author:
bruno
Message:

merge -r763:781 $SVN_M/branches/stable

Location:
trunk/tools
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/build2pkg

    r764 r782  
    6363            ar=$ARCH
    6464        fi
    65         pkg1="${TOPBUILDDIR}/RPMS/${ar}/$pv${suf}.${ar}.rpm"
     65        pkg1="${TOPBUILDDIR}/RPMS/${ar}/$pv-${TAG}${suf}.${ar}.rpm"
    6666        #rm -f $pkg1
    6767
     
    7272        if [ "$dfam" = "mandriva" ] || [ "$dfam" = "suse" ]; then
    7373            echo "Using bzip2 files ($dfam)"
    74             ln -sf $pv.tar.bz2 SOURCES/
     74            ln -sf ${TOPDIR}/${VER}-$TAG/$pv.tar.bz2 SOURCES/
    7575        else
    7676            echo "Using gzip files ($dfam)"
     
    9696        cd ..
    9797    elif [  _"$dtype" = _"ebuild" ]; then
    98         log=$TMP/$p-gentoo.log
    9998        tar xfz $src $p-${PVER}/distributions/${ddir}-$dver/$p-${PVER}.ebuild
    10099        if [ _"`grep $TOPBUILDDIR/portage /etc/make.conf`" = _"" ]; then
     
    108107
    109108        cd ${TOPBUILDDIR}/portage/sys-apps/$p
    110         ebuild $p-${PVER}.ebuild digest 2> $log 1> $log
     109        ebuild $p-${PVER}.ebuild digest
    111110        if [ $? != 0 ]; then
    112             cat $log
    113111            status=-1
    114112        fi
    115         ebuild $p-${PVER}.ebuild install 2>> $log 1>> $log
     113        ebuild $p-${PVER}.ebuild package
    116114        if [ $? != 0 ]; then
    117             cat $log
    118115            status=-1
    119116        fi
    120117    elif [  _"$dtype" = _"deb" ]; then
    121         log=$TMP/$p-deb.log
    122118        export TMPDIR=/tmp
    123119        cd $TOPBUILDDIR
  • trunk/tools/mkchangelog.pl

    r729 r782  
    2323my $tmp = "";
    2424my $ver = "";
     25my $ver2 = "";
    2526my $date = "";
    2627
     
    5758    }
    5859}
    59 print "Using $chglog as input ChangeLog file for $pkg\n";
     60#print "Using $chglog as input ChangeLog file for $pkg\n";
    6061
    6162open(INPUT,"$chglog") || die "Unable to open $chglog (read)";
    6263open(OUTPUT,"> $outfile") || die "Unable to open $outfile (write)";
     64
    6365# Skip first 4 lines
    6466$tmp = <INPUT>;
     
    7375}
    7476
     77my $first=1;
     78
    7579# Handle each block separated by newline
    7680while (<INPUT>) {
    7781    ($ver, $date) = split(/ /);
     82    $ver =~ s/^v//;
    7883    chomp($date);
    7984    $date =~ s/\(([0-9-]+)\)/$1/;
     
    8388    #print "**$ndate**\n";
    8489    if ($dtype eq "rpm") {
    85         print OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> VVV-RRR\n";
     90        if ($ver !~ /-/) {
     91            if ($first eq 1) {
     92                $ver2 = "$ver-$ENV{TAG}"."$ENV{suf}";
     93                $first=0;
     94            } else {
     95                $ver2 = "$ver-1"."$ENV{suf}";
     96            }
     97        } else {
     98            $ver2 = "$ver"."$ENV{suf}";
     99        }
     100        print OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> $ver2\n";
    86101        print OUTPUT "- Updated to $ver\n";
    87102        }
  • trunk/tools/mknewshtml.pl

    r672 r782  
    115115close(NEWS);
    116116
    117 my $cpt = 3;
     117my $cpt = 4;
    118118open(NEWS,"> $lastnews") || die "Unable to open $lastnews (write)";
    119119$all = $dbh->selectall_arrayref("SELECT id,date,announce FROM announces ORDER BY date DESC");
  • trunk/tools/mknewtag

    r652 r782  
    3535if [ $nb -gt 0 ]; then
    3636    echo "You'll have to check in before updating the TAG"
    37     echo "$TAG" > $TOOLHOME/TAG
     37    exit -1
    3838else
    3939    for p in mindi mondo; do
    4040        v=`cat $TOOLHOME/../$p/VERSION`
    41         grep -q "${v}-${TAG}" $TOOLHOME/../$p/ChangeLog
     41        grep -q "${v}" $TOOLHOME/../$p/ChangeLog
    4242        if [ $? -ne 0 ]; then
    43             echo "You'll have to document in ${p}'s ChangeLog for ${v}-${TAG} related modifications"
     43            echo "You'll have to document in ${p}'s ChangeLog for ${v} related modifications"
    4444            exit -1
    4545        fi
  • trunk/tools/pkg2ftp

    r764 r782  
    6363        pkg="$pkg ${TOPBUILDDIR}/$p_*.deb"
    6464        spkg="$spkg ${TOPBUILDDIR}/$p_*.dsc ${TOPBUILDDIR}/$p_*.tar.gz"
     65    elif [  _"$dtype" = "_ebuild" ]; then
     66        spkg="$spkg ${TOPBUILDDIR}/portage/sys-apps/$p/$pv.ebuild"
     67        pkg="$pkg /usr/portage/packages/All/$pv.tbz2"
    6568    fi
    6669done
  • trunk/tools/pkg2mdv

    r764 r782  
    5151    src=${TOPDIR}/${VER}-$TAG/$p-[1-9st]*.tar.gz
    5252    pv=`basename $src .tar.gz`
    53     spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv${suf}.src.rpm"
    54     ppkg="$ppkg $pv${suf}.src.rpm"
     53    spkg="$spkg ${TOPBUILDDIR}/SRPMS/$pv-${TAG}${suf}.src.rpm"
     54    ppkg="$ppkg $pv-${TAG}${suf}.src.rpm"
    5555done
    5656
  • trunk/tools/svn-env

    r561 r782  
    66#
    77
    8 export SVNBRANCH="branches/`cat ${TOOLHOME}/../mondo/VERSION`"
     8export SVNBRANCH="`cat ${TOOLHOME}/../mondo/VERSION`"
    99export VER=`cat ${BASE}/svn/${SVNBRANCH}/mondo/VERSION`
    1010
  • trunk/tools/svn2build

    r764 r782  
    3737for p in $c; do
    3838    v=`cat ${SVNBRANCH}/$p/VERSION`
    39     echo "Management of $p $v-$REVISION"
     39    echo "Management of $p $v-$TAG (rev $REVISION)"
    4040    dest="$p-$v"
    4141    rm -fr $dest
     
    136136
    137137    # Finally creates the tar files
    138     echo "Creating $p tar files"
     138    echo -n "Creating $p tar files (gzip... "
    139139    tar cfphz ${DEST}/$p-$v.tar.gz $dest
    140     tar cfphj ${DEST}/$p-$v-$TAG.tar.bz2 $dest
     140    echo -n " bzip2..."
     141    tar cfphj ${DEST}/$p-$v.tar.bz2 $dest
     142    echo " )"
    141143done
    142144
Note: See TracChangeset for help on using the changeset viewer.