ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/getinfo.c
(Generate patch)

Comparing ray/src/util/getinfo.c (file contents):
Revision 2.13 by schorsch, Sun Mar 6 01:13:18 2016 UTC vs.
Revision 2.14 by greg, Tue Aug 30 06:10:12 2016 UTC

# Line 71 | Line 71 | main(
71                  execvp(argv[2], argv+2);
72                  perror(argv[2]);
73                  return 1;
74 +        } else if (argc > 2 && !strcmp(argv[1], "-a")) {
75 +                SET_FILE_BINARY(stdin);
76 +                SET_FILE_BINARY(stdout);
77 +                getheader(stdin, (gethfunc *)fputs, stdout);
78 +                for (i = 2; i < argc; i++) {
79 +                        int     len = strlen(argv[i]);
80 +                        if (!len) continue;
81 +                        fputs(argv[i], stdout);
82 +                        if (argv[i][len-1] != '\n')
83 +                                fputc('\n', stdout);
84 +                }
85 +                fputc('\n', stdout);
86 +                copycat();
87 +                return 0;
88          } else if (argc == 2 && !strcmp(argv[1], "-")) {
89                  SET_FILE_BINARY(stdin);
90                  SET_FILE_BINARY(stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines