function projectIdToUnixGroup()

in site/js/projects.js [136:152]


function projectIdToUnixGroup(projectId, pmcName) {
    // Rerig the unix name and committee id
    var unixgroup = projectId.split("-")[0];
    /*
      Temp hack for podling names. TODO need to sort out generated names
    */
    if (projectId.indexOf("incubator-") === 0) {
      unixgroup = projectId.split("-")[1]
    }
    // special cases
    if (unixgroup === "empire") unixgroup = "empire-db";
    if (unixgroup === "community") unixgroup = "comdev";
    if (pmcName === "attic") {
      unixgroup = "attic";
    }
    return unixgroup;
}