properly set pl_DISTRO_NAME for CentOS
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 20 Nov 2007 20:45:13 +0000 (20:45 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 20 Nov 2007 20:45:13 +0000 (20:45 +0000)
build.common

index 40de70f..60ed22d 100644 (file)
@@ -60,6 +60,13 @@ case $pl_DISTRO in
        else
            pl_DISTRO_NAME=f$pl_DISTRO_RELEASE
        fi ;;
+    [Cc]entOS*)
+       if [ "$pl_DISTRO_RELEASE" = "4.5" ] ; then
+           # centos 4.5 is just centos4 + enhancements
+           pl_DISTRO_NAME=centos4
+       else
+           pl_DISTRO_NAME=centos$pl_DISTRO_RELEASE
+       fi ;;
     *)
        echo "build.common: WARNING - pl_DISTRO_NAME not set for distro=$pl_DISTRO" ;;
 esac