Mercurial > hg
comparison contrib/buildrpm @ 26139:f643b6863382
buildrpm: mkdir -p two needed directories (issue4779)
Without this, building RPMs can fail.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 01 Sep 2015 14:41:41 -0400 |
parents | 56c64c91b429 |
children | ec74ea542201 |
comparison
equal
deleted
inserted
replaced
26138:f77a3f27cea5 | 26139:f643b6863382 |
---|---|
54 RPMPYTHONVER=$PYTHONVER | 54 RPMPYTHONVER=$PYTHONVER |
55 else | 55 else |
56 RPMPYTHONVER=%{nil} | 56 RPMPYTHONVER=%{nil} |
57 fi | 57 fi |
58 | 58 |
59 mkdir -p $RPMBUILDDIR/SOURCES | |
59 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz | 60 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz |
60 if [ "$PYTHONVER" ]; then | 61 if [ "$PYTHONVER" ]; then |
61 ( | 62 ( |
62 mkdir -p build | 63 mkdir -p build |
63 cd build | 64 cd build |
77 fi | 78 fi |
78 ln -f $DOCUTILS_SRCFILE $RPMBUILDDIR/SOURCES/$DOCUTILS_SRCFILE | 79 ln -f $DOCUTILS_SRCFILE $RPMBUILDDIR/SOURCES/$DOCUTILS_SRCFILE |
79 ) | 80 ) |
80 fi | 81 fi |
81 | 82 |
83 mkdir -p $RPMBUILDDIR/SPECS | |
82 rpmspec=$RPMBUILDDIR/SPECS/mercurial.spec | 84 rpmspec=$RPMBUILDDIR/SPECS/mercurial.spec |
83 | 85 |
84 sed -e "s,^Version:.*,Version: $version," \ | 86 sed -e "s,^Version:.*,Version: $version," \ |
85 -e "s,^Release:.*,Release: $release," \ | 87 -e "s,^Release:.*,Release: $release," \ |
86 $specfile > $rpmspec | 88 $specfile > $rpmspec |