Skip to content

Commit

Permalink
master.sh: Remove output directory before build
Browse files Browse the repository at this point in the history
  • Loading branch information
NHellFire committed Sep 7, 2017
1 parent 817446c commit dda9242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ esac

test ! -r "$BR2_BZIMAGE" && echo "$0: $BR2_BZIMAGE is missing." && exit 4

cp -v "$BR2_BZIMAGE" "$OUTDIR/$BZIMAGE_DIR/dban.bzi"

if [ "$PRERELEASE" = "0" ]; then
OUTNAME="dban-${DBAN_VERSION}_linux-${BR2_LINUX_KERNEL_VERSION}_${BR2_ARCH}.iso"
else
OUTNAME="dban-${GIT_VERSION}_linux-${BR2_LINUX_KERNEL_VERSION}_${BR2_ARCH}.iso"
fi

rm -rf $OUTDIR
mkdir -p $OUTDIR
cp -v "$BR2_BZIMAGE" "$OUTDIR/$BZIMAGE_DIR/dban.bzi"
cp -r isoroot/generic/* $OUTDIR/
cp -r $INDIR/* $OUTDIR/
mkisofs -o "$OUTNAME" "${MKISOFS_ARGS[@]}" "$OUTDIR"
Expand Down

0 comments on commit dda9242

Please sign in to comment.