diff --git a/wxPython/distrib/mac/wxPythonOSX/build b/wxPython/distrib/mac/wxPythonOSX/build index 62b695ffa3..0d7a8153a5 100755 --- a/wxPython/distrib/mac/wxPythonOSX/build +++ b/wxPython/distrib/mac/wxPythonOSX/build @@ -182,6 +182,9 @@ mkdir -p $DMGROOT mkdir -p $DMGAPPS/Docs mkdir -p $DMGAPPS/Samples +if [ ! -d $DESTDIR ]; then + mkdir $DESTDIR +fi pushd $BUILDROOT @@ -470,7 +473,7 @@ EOF $PROGDIR/../makedmg $DMGROOT $DMGDIR $dmgname echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR - mv $DMGDIR/$dmgname.dmg $DESTDIR + mv $DMGDIR/$dmgname.dmg $DESTDIR/$dmgname.dmg #--------------------------------------------------------------------------- @@ -626,7 +629,7 @@ EOF $PROGDIR/../makedmg $DMGAPPS $DMGDIR $dmgname echo Moving $DMGDIR/$dmgname.dmg to $DESTDIR - mv $DMGDIR/$dmgname.dmg $DESTDIR + mv $DMGDIR/$dmgname.dmg $DESTDIR/$dmgname.dmg fi