From ae4e0c7a5c72bb8526f23938b7253d8844fc947f Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Wed, 21 Sep 2005 04:37:32 +0000 Subject: [PATCH] Fix an issue where dist may actually be created as a file rather than a directory. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/distrib/mac/wxPythonOSX/build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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