rpms: create missing builds dir if it doesn't exist
authorMads Kiilerich <madski@unity3d.com>
Tue, 14 Apr 2015 23:51:02 -0400
changeset 24730 aa8e5c6d953b
parent 24729 3e48462ec15a
child 24731 88a36edefea5
rpms: create missing builds dir if it doesn't exist
contrib/buildrpm
--- 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