aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-14 14:43:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-14 14:43:57 +0000
commit7c419689bd792f329cf5e82fac4a11b536b61c00 (patch)
treea750c6df092292afff49119a1b633b912114f088
parent5ac8fb56088d340c52d796b672d3739cfff412c7 (diff)
downloadpaludis-7c419689bd792f329cf5e82fac4a11b536b61c00.tar.gz
paludis-7c419689bd792f329cf5e82fac4a11b536b61c00.tar.xz
Move MakeEnvCommand out of internals and into a public namespace so that we can use it inside a loop for USE_EXPAND vars
-rw-r--r--paludis/util/system.hh23
1 files changed, 10 insertions, 13 deletions
diff --git a/paludis/util/system.hh b/paludis/util/system.hh
index ace0da0..7432b2f 100644
--- a/paludis/util/system.hh
+++ b/paludis/util/system.hh
@@ -63,27 +63,24 @@ namespace paludis
*/
int run_command(const std::string & cmd);
- namespace system_internals
+ class MakeEnvCommand
{
- class MakeEnvCommand
- {
- private:
- std::string cmd;
- std::string args;
+ private:
+ std::string cmd;
+ std::string args;
- public:
- explicit MakeEnvCommand(const std::string &, const std::string &);
+ public:
+ explicit MakeEnvCommand(const std::string &, const std::string &);
- MakeEnvCommand operator() (const std::string &, const std::string &) const;
+ MakeEnvCommand operator() (const std::string &, const std::string &) const;
- operator std::string() const;
- };
- }
+ operator std::string() const;
+ };
/**
* Run a command, with environment.
*/
- const system_internals::MakeEnvCommand make_env_command(const std::string & cmd);
+ const MakeEnvCommand make_env_command(const std::string & cmd);
}
#endif