fix to selecting Fedora release number
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 28 Aug 2007 21:52:38 +0000 (21:52 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 28 Aug 2007 21:52:38 +0000 (21:52 +0000)
bootmanager.spec
support-files/Makefile

index 32d79bf..dbdcbad 100644 (file)
@@ -33,7 +33,7 @@ pushd bootmanager
 
 ./build.sh
 pushd support-files
-./buildnode.sh -r $([ -f "/etc/fedora-release" ] && awk ' { if ($3=="Core") print $4; else print $3 } ' /etc/fedora-release || echo 4)
+./buildnode.sh -r $([ -f "/etc/fedora-release" ] && awk ' { if ($2=="Core") print $4; else print $3 } ' /etc/fedora-release || echo 4)
 popd
 
 popd
index a565c3d..ea661e1 100644 (file)
@@ -7,13 +7,13 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id: Makefile,v 1.5 2007/03/08 17:52:21 mef Exp $
+# $Id: Makefile,v 1.6 2007/08/24 06:13:56 mef Exp $
 # 
 
 all:   PlanetLab-Bootstrap.tar.bz2
 
 PlanetLab-Bootstrap.tar.bz2:
-       ./buildnode.sh -r $$([ -f "/etc/fedora-release" ] && awk ' { if ($3=="Core") print $4; else print $3 } ' /etc/fedora-release || echo 4)
+       ./buildnode.sh -r $$([ -f "/etc/fedora-release" ] && awk ' { if ($2=="Core") print $4; else print $3 } ' /etc/fedora-release || echo 4)
 
 clean:
        rm -f PlanetLab-Bootstrap.tar.bz2