]>
git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-crontab.c
5 * Usage: test-tool crontab <file> -l|<input>
7 * If -l is specified, then write the contents of <file> to stdout.
8 * Otherwise, copy the contents of <input> into <file>.
10 int cmd__crontab(int argc
, const char **argv
)
16 usage("test-tool crontab <file> -l|<input>");
18 if (!strcmp(argv
[2], "-l")) {
19 from
= fopen(argv
[1], "r");
24 from
= xfopen(argv
[2], "r");
25 to
= xfopen(argv
[1], "w");
28 while ((a
= fgetc(from
)) != EOF
)