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:
+11
-5
@@ -60,12 +60,22 @@ if [ $# \> 0 ]; then
|
|||||||
fi
|
fi
|
||||||
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
|
# disk image path, size in MB
|
||||||
if [ -d "$1" ]; then
|
if [ -d "$1" ]; then
|
||||||
alreadyMounted=true
|
alreadyMounted=true
|
||||||
targetDir=$1
|
targetDir=$1
|
||||||
elif [ "$1" == "" ]; then
|
elif [ "$1" == "" ]; then
|
||||||
imagePath=$sourceDir/haiku.image
|
imagePath=$sourceDir/haiku.${arch}.${type}.${date}.image
|
||||||
else
|
else
|
||||||
imagePath=$1
|
imagePath=$1
|
||||||
fi
|
fi
|
||||||
@@ -77,10 +87,6 @@ imageSize=80
|
|||||||
# 80 MB: cylinders=164, heads=16, spt=63
|
# 80 MB: cylinders=164, heads=16, spt=63
|
||||||
# 100 MB: cylinders=204, 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
|
# build everything needed
|
||||||
previousDir=`pwd`
|
previousDir=`pwd`
|
||||||
cd $sourceDir
|
cd $sourceDir
|
||||||
|
|||||||
Reference in New Issue
Block a user