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
This commit is contained in:
Kevin Ollivier 2005-09-21 04:37:32 +00:00
parent 66c05fa96b
commit ae4e0c7a5c

View File

@ -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