Rearrange a bit, so that it checks for the build dir after downloading, makes it a bit more obvious that redownloading isn't needed, but only deletion of the build dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20099 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
80410f21b9
commit
074bc6c09a
|
@ -131,13 +131,6 @@ if test ! -w $prefix; then
|
|||
fi
|
||||
|
||||
|
||||
###########################################################################
|
||||
# If there's already a build dir, we don't overwrite it
|
||||
if test -d $builddir; then
|
||||
echo "You already have a $builddir directory!"
|
||||
echo "Please remove it and re-run the script"
|
||||
exit
|
||||
fi
|
||||
|
||||
cleardir () {
|
||||
# $1 is the name of the build dir
|
||||
|
@ -213,9 +206,6 @@ else
|
|||
pathadd="$bindir"
|
||||
fi
|
||||
|
||||
mkdir -p $builddir
|
||||
cd $builddir
|
||||
|
||||
summary="summary-$1"
|
||||
|
||||
echo "============================ Summary ============================" > $summary
|
||||
|
@ -262,6 +252,18 @@ if test -n "$gccpatch"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
###########################################################################
|
||||
# If there's already a build dir, we don't overwrite it
|
||||
if test -d $builddir; then
|
||||
echo "You already have a $builddir directory!"
|
||||
echo "Please remove it and re-run the script"
|
||||
exit
|
||||
else
|
||||
mkdir -p $builddir
|
||||
cd $builddir
|
||||
fi
|
||||
|
||||
|
||||
echo "ROCKBOXDEV: extracting binutils-$binutils in $builddir"
|
||||
tar xjf $dlwhere/binutils-$binutils.tar.bz2
|
||||
echo "ROCKBOXDEV: extracting gcc-$gccver in $builddir"
|
||||
|
|
Loading…
Reference in New Issue
Block a user