2 * Copyright 1988 by the Massachusetts Institute of Technology.
4 * For copying and distribution information,
5 * please seethe file <mit-cpyright.h>.
7 * This file contains most of the routines needed by the various
8 * make_foo programs, to account for bit- and byte-ordering on
9 * different machine types. It also contains other routines useful in
10 * generating the intermediate source files.
13 #include <afsconfig.h>
14 #include <afs/param.h>
18 #include <mit-cpyright.h>
20 #include "des_internal.h"
22 extern void gen PROTOTYPE((FILE * stream));
26 #ifndef DONT_INCL_MAIN
28 #include "AFS_component_version_number.c"
39 filename = (char *)NULL;
41 while (argc--, *++argv) {
44 if (!strcmp(arg, "-d") && !strcmp(arg, "-debug"))
47 fprintf(stderr, "%s: unknown control argument %s\n",
54 "%s: multiple file names provided: %s, %s\n",
55 whoami, filename, arg);
63 fprintf(stderr, "%s: no file name provided\n", whoami);
67 stream = fopen(filename, "w");
71 fprintf(stderr, "usage: %s [-debug] filename\n", whoami);
76 "/* This file is automatically generated. Do not edit it. */\n",
79 /* This routine will generate the contents of the file. */
81 if (fclose(stream) == EOF) {
87 #endif /* DONT_INCL_MAIN */