contrib/buildrpm
changeset 21641 977e5bd6eb76
parent 21640 4bfb721de6dd
child 22435 4c4385eb26bc
equal deleted inserted replaced
21640:4bfb721de6dd 21641:977e5bd6eb76
    41     # official tag, version is like 1.3.1
    41     # official tag, version is like 1.3.1
    42     version=`echo $hgversion | sed -e 's/+.*//'`
    42     version=`echo $hgversion | sed -e 's/+.*//'`
    43     release='0'
    43     release='0'
    44 fi
    44 fi
    45 
    45 
    46 $HG archive -t tgz $rpmdir/SOURCES/mercurial-$version.tar.gz
    46 $HG archive -t tgz $rpmdir/SOURCES/mercurial-$version-$release.tar.gz
    47 rpmspec=$rpmdir/SPECS/mercurial-$version.spec
    47 rpmspec=$rpmdir/SPECS/mercurial.spec
    48 
    48 
    49 sed -e "s,^Version:.*,Version: $version," \
    49 sed -e "s,^Version:.*,Version: $version," \
    50     -e "s,^Release:.*,Release: $release," \
    50     -e "s,^Release:.*,Release: $release," \
    51     $specfile > $rpmspec
    51     $specfile > $rpmspec
    52 
    52