when using the default image, create a more descriptive name {architecture, debug/release (from DEBUG variable), date}. note: DEBUG images are currently not possible since some components do not build with DEBUG=1.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14013 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Andrew Bachmann 2005-08-20 23:53:55 +00:00
parent edde83c450
commit f721f59acd
1 changed files with 11 additions and 5 deletions

View File

@ -60,12 +60,22 @@ if [ $# \> 0 ]; then
fi
fi
# the architecture; ToDo: set correctly (using uname?)
arch=x86
if [ "$DEBUG" \> 0 ]; then
type=debug_$DEBUG
else
type=release
fi
date=`date +%Y-%m-%d.%H:%M`
# disk image path, size in MB
if [ -d "$1" ]; then
alreadyMounted=true
targetDir=$1
elif [ "$1" == "" ]; then
imagePath=$sourceDir/haiku.image
imagePath=$sourceDir/haiku.${arch}.${type}.${date}.image
else
imagePath=$1
fi
@ -77,10 +87,6 @@ imageSize=80
# 80 MB: cylinders=164, heads=16, spt=63
# 100 MB: cylinders=204, heads=16, spt=63
# the architecture; ToDo: set correctly (using uname?)
arch=x86
type=release
# build everything needed
previousDir=`pwd`
cd $sourceDir