git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe3e26e
)
by default build myplc for same fedora as host environment
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 16 Aug 2007 21:42:02 +0000
(21:42 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Thu, 16 Aug 2007 21:42:02 +0000
(21:42 +0000)
build.functions
patch
|
blob
|
history
diff --git
a/build.functions
b/build.functions
index
c89aab3
..
7b166f1
100644
(file)
--- a/
build.functions
+++ b/
build.functions
@@
-6,7
+6,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: build.functions,v 1.
4 2006/08/16 01:27:16
mlhuang Exp $
+# $Id: build.functions,v 1.
5 2007/01/20 04:04:25
mlhuang Exp $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
@@
-25,9
+25,8
@@
fi
export PATH
# Release and architecture to install
export PATH
# Release and architecture to install
-PLC_DEVEL_FEDORA_RELEASE=4
-PLC_DEVEL_FEDORA_ARCH=i386
-
+PLC_DEVEL_FEDORA_RELEASE=$([ -f "/etc/fedora-release" ] && awk ' { print $4 } ' /etc/fedora-release || echo 4)
+PLC_DEVEL_FEDORA_ARCH=$(uname -i)
# Fedora Core mirror from which to install filesystems
PLC_DEVEL_FEDORA_URL=file:///data/fedora
# Fedora Core mirror from which to install filesystems
PLC_DEVEL_FEDORA_URL=file:///data/fedora