changeset 24730:aa8e5c6d953b

rpms: create missing builds dir if it doesn't exist
author Mads Kiilerich <madski@unity3d.com>
date Tue, 14 Apr 2015 23:51:02 -0400
parents 3e48462ec15a
children 88a36edefea5
files contrib/buildrpm
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/buildrpm	Tue Apr 14 23:44:03 2015 -0400
+++ b/contrib/buildrpm	Tue Apr 14 23:51:02 2015 -0400
@@ -74,6 +74,7 @@
 $HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz
 if [ "$PYTHONVER" ]; then
 (
+    mkdir -p build
     cd build
     PYTHON_SRCFILE=Python-$PYTHONVER.tgz
     [ -f $PYTHON_SRCFILE ] || curl -Lo $PYTHON_SRCFILE http://www.python.org/ftp/python/$PYTHONVER/$PYTHON_SRCFILE