From f721f59acd8dcc32951f3100496e9ff6747e8277 Mon Sep 17 00:00:00 2001 From: Andrew Bachmann Date: Sat, 20 Aug 2005 23:53:55 +0000 Subject: [PATCH] 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 --- makehdimage | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/makehdimage b/makehdimage index a544c13741..52e1a85645 100755 --- a/makehdimage +++ b/makehdimage @@ -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