X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=blobdiff_plain;f=build.functions;h=965a88098fc0ccbde5bb18f77ad85c6ab95fe8fe;hp=7b166f1c6275557daed4d4139bf771acee50acda;hb=c72a95e9b945cce218a60e1d46ddb772656887a1;hpb=d9c2ec253b257778081276d02175c5947092eddc diff --git a/build.functions b/build.functions index 7b166f1..965a880 100644 --- a/build.functions +++ b/build.functions @@ -6,7 +6,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: build.functions,v 1.5 2007/01/20 04:04:25 mlhuang Exp $ +# $Id: build.functions,v 1.6 2007/08/16 21:42:02 mef Exp $ # PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -25,7 +25,7 @@ fi export PATH # Release and architecture to install -PLC_DEVEL_FEDORA_RELEASE=$([ -f "/etc/fedora-release" ] && awk ' { print $4 } ' /etc/fedora-release || echo 4) +PLC_DEVEL_FEDORA_RELEASE=$([ -f "/etc/fedora-release" ] && awk ' { if ($3=="Core") print $4; else print $3 } ' /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