make sure that destination dirs exist
[buildroot.git] / toolchain / dependencies / env.c
blob498e6a89ec905efff15c5b70c0b836dd2b3e2625
1 /* print the current environment to track eventually changed settings.
3 * Copyright (C) 2008 Bernhard Fischer
5 * Licensed under GPLv2 or later, see
6 * http://www.gnu.org/licenses/gpl.txt
7 */
8 #include <unistd.h>
9 extern char **environ;
10 int main(void)
12 char **envp;
13 int ret = 0;
14 for (envp = environ; *envp; envp++) {
15 if (envp[0][0] == '_' && envp[0][1] == '=')
16 continue; /* Skip last command */
17 if (puts(*envp) <= 0) {
18 ret = 1;
19 break;
22 return ret;