version 1.7, 2003/04/07 21:13:54 |
version 1.8, 2003/04/25 20:07:09 |
|
|
else { |
else { |
if (uflag) { |
if (uflag) { |
for (step = 0; step < argc; step++) { |
for (step = 0; step < argc; step++) { |
(void)asprintf(&cmd, |
if (asprintf(&cmd, |
"mv %s OTAGS; fgrep -v '\t%s\t' OTAGS >%s; rm OTAGS", |
"mv %s OTAGS; fgrep -v '\t%s\t' OTAGS >%s; rm OTAGS", |
outfile, argv[step], outfile); |
outfile, argv[step], outfile) == -1) |
if (cmd == NULL) |
|
err(1, "out of space"); |
err(1, "out of space"); |
system(cmd); |
system(cmd); |
free(cmd); |
free(cmd); |
|
|
put_entries(head); |
put_entries(head); |
(void)fclose(outf); |
(void)fclose(outf); |
if (uflag) { |
if (uflag) { |
(void)asprintf(&cmd, "sort -o %s %s", |
if (asprintf(&cmd, "sort -o %s %s", |
outfile, outfile); |
outfile, outfile) == -1) |
if (cmd == NULL) |
|
err(1, "out of space"); |
err(1, "out of space"); |
system(cmd); |
system(cmd); |
free(cmd); |
free(cmd); |