Roxen.git / server / base_server / roxenloader.pike

version» Context lines:

Roxen.git/server/base_server/roxenloader.pike:1829:   #else    @((getenv("RX_FONTPATH") || "")/"," - ({""}))   #endif    });   array(string) package_module_path = ({ });      array(string) package_directories = ({ });      void add_package(string package_dir)   { -  string ver = r_read_bytes(combine_path(package_dir, "VERSION")); +  string real_pkg_dir = lfile_path(package_dir); +  string ver = Stdio.read_bytes(combine_path(real_pkg_dir, "VERSION")); +  if (ver) ver -= "\n";    if (ver && (ver != "")) { -  report_debug("Adding package %s (Version %s).\n", -  roxen_path (package_dir), ver - "\n"); +  if ((ver[0] >= '0') && (ver[0] <= '9')) { +  ver = "Version " + ver; +  } +  report_debug("Adding package %s (%s).\n", +  roxen_path (package_dir), ver);    } else {    report_debug("Adding package %s.\n",    roxen_path (package_dir));    }    package_directories += ({ package_dir }); -  string real_pkg_dir = lfile_path(package_dir); +     string sub_dir = combine_path(real_pkg_dir, "pike-modules");    if (Stdio.is_dir(sub_dir)) {    REPORT_DEBUG(" Pike modules: %O\n", sub_dir);    master()->add_module_path(sub_dir);    }    if (Stdio.is_dir(sub_dir = combine_path(real_pkg_dir, "include/"))) {    REPORT_DEBUG(" Pike includes: %O\n", sub_dir);    master()->add_include_path(sub_dir);    }   #ifdef RUN_SELF_TEST