From cb4ff68ce457e6b06ffdf904a8f492c11a529bcf Mon Sep 17 00:00:00 2001 From: "warren.toomey" Date: Wed, 7 May 2008 00:03:43 +0000 Subject: [PATCH] Create build/ if it doesn't exist. --- tools/imgbuild | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/imgbuild b/tools/imgbuild index 0f5f8bb..ee29db0 100755 --- a/tools/imgbuild +++ b/tools/imgbuild @@ -10,8 +10,7 @@ if [ ! -d fs ] then echo 'No fs/ directory, are you running this in the correct dir?'; exit 1 fi if [ ! -d build ] -then echo 'No build/ directory, are you running this in the correct dir?' - exit 1 +then mkdir build fi if [ ! -x tools/mkfs ] then echo "tools/mkfs doesn't exist, looks like you need to compile it"; exit 1 @@ -32,5 +31,5 @@ rsync -a --exclude .svn fs/usr build rsync -a --exclude .svn fs/new/etc build/root # Now build the two images -tools/mkfs build/root $rf_img rf -tools/mkfs build/usr $rk_img rk +tools/mkfs -p fs/Readme build/root $rf_img rf +tools/mkfs -p fs/Readme build/usr $rk_img rk