+ string line = read_line (f);
+ size_t idx = line.find (' ');
+ if (idx == NPOS)
+ continue;
+
+ string command = line.substr (0, idx);
+ line = line.substr (idx + 1);
+
+ if (idx == NPOS)
+ continue;
+ idx = line.find ('=');
+
+ string variable = line.substr (0, idx);
+ string value = line.substr (idx + 1);
+
+ value = expand_environment_variables (value);
+
+ if (command == "set")
+ sane_putenv (variable.c_str (), value, true);
+ else if (command == "setdir")
+ set_env_dir (variable.c_str (), value);
+ else if (command == "setfile")
+ set_env_file (variable.c_str (), value);
+ else if (command == "prependdir")
+ prepend_env_path (variable.c_str (), value);
+ else
+ error (_f ("Unknown relocation command %s", command));