make Fedora 7 compatible
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 24 Aug 2007 06:13:56 +0000 (06:13 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 24 Aug 2007 06:13:56 +0000 (06:13 +0000)
support-files/Makefile

index 8d4a571..a565c3d 100644 (file)
@@ -7,13 +7,13 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id: Makefile,v 1.4 2006/08/20 21:21:13 thierry Exp $
+# $Id: Makefile,v 1.5 2007/03/08 17:52:21 mef Exp $
 # 
 
 all:   PlanetLab-Bootstrap.tar.bz2
 
 PlanetLab-Bootstrap.tar.bz2:
-       ./buildnode.sh -r $$([ -f "/etc/fedora-release" ] && awk ' { print $4 } ' /etc/fedora-release || echo "4")
+       ./buildnode.sh -r $$([ -f "/etc/fedora-release" ] && awk ' { if ($3=="Core") print $4; else print $3 } ' /etc/fedora-release || echo 4)
 
 clean:
        rm -f PlanetLab-Bootstrap.tar.bz2