Mercurial > hg
comparison contrib/buildrpm @ 27788:d713fa934fb9
buildrpm: move creation of RPM directories from dockerrpm
Handling the creation of the RPM directories in buildrpm
is more consistent and takes care of non-docker builds as well.
author | Mathias De Maré <mathias.demare@gmail.com> |
---|---|
date | Thu, 07 Jan 2016 06:44:37 +0100 |
parents | 6474b64045fb |
children | e7bd55db011b |
comparison
equal
deleted
inserted
replaced
27787:e6e34c4e3916 | 27788:d713fa934fb9 |
---|---|
66 RPMPYTHONVER=$PYTHONVER | 66 RPMPYTHONVER=$PYTHONVER |
67 else | 67 else |
68 RPMPYTHONVER=%{nil} | 68 RPMPYTHONVER=%{nil} |
69 fi | 69 fi |
70 | 70 |
71 mkdir -p $RPMBUILDDIR/SOURCES | 71 mkdir -p $RPMBUILDDIR/{SOURCES,BUILD,SRPMS,RPMS} |
72 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz | 72 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz |
73 if [ "$PYTHONVER" ]; then | 73 if [ "$PYTHONVER" ]; then |
74 ( | 74 ( |
75 mkdir -p build | 75 mkdir -p build |
76 cd build | 76 cd build |