2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <sys/types.h>
11 #include <sys/types.h>
17 #include "AFS_component_version_number.c"
20 int mc_copy(FILE *, FILE *, char **);
22 int main(int argc, char **argv) {
23 register FILE *infile;
24 register FILE *outfile;
29 printf("config: usage is 'config <from file> <to file> <system name>'\n");
32 infile = fopen(argv[1], "r");
34 printf("config: input file %s not found.\n", argv[1]);
37 outfile = fopen(argv[2], "w+");
39 printf("config: output file %s not found.\n", argv[2]);
45 code = mc_copy(infile, outfile, alist);
47 printf("config: failed to correctly write makefile '%s', code %d\n",
52 printf("Wrote new makefile '%s'.\n", argv[2]);