projects
/
tools
/
obs-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94806d5
)
make xen detection a function
author
Ludwig Nussel
<ludwig.nussel@suse.de>
Fri, 22 Feb 2008 13:42:49 +0000
(13:42 +0000)
committer
Ludwig Nussel
<ludwig.nussel@suse.de>
Fri, 22 Feb 2008 13:42:49 +0000
(13:42 +0000)
build
patch
|
blob
|
history
diff --git
a/build
b/build
index
dfd6285
..
052e91e
100755
(executable)
--- a/
build
+++ b/
build
@@
-321,7
+321,12
@@
LOGFILE=
KILL=
CHANGELOG=
-if test "$0" = "/.build/build" ; then
+detect_xen_2nd_stage()
+{
+ if ! test "$0" = "/.build/build" ; then
+ return 1
+ fi
+ echo "XEN 2nd stage started"
BUILD_ROOT=/
BUILD_DIR=/.build
. $BUILD_DIR/build.data
@@
-353,8
+358,14
@@
if test "$0" = "/.build/build" ; then
umask 022
swapon -v "$XENSWAP" || exit 1
fi
- set "/.build-srcdir/$SPECFILE"
HOST="$MYHOSTNAME"
+
+ return 0
+}
+
+if detect_xen_2nd_stage; then
+ set "/.build-srcdir/$SPECFILE"
+else
export HOST
fi