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>
30 #include "des_internal.h"
32 extern void gen PROTOTYPE((FILE * stream));
36 #ifndef DONT_INCL_MAIN
38 #include "AFS_component_version_number.c"
49 filename = (char *)NULL;
51 while (argc--, *++argv) {
54 if (!strcmp(arg, "-d") && !strcmp(arg, "-debug"))
57 fprintf(stderr, "%s: unknown control argument %s\n",
64 "%s: multiple file names provided: %s, %s\n",
65 whoami, filename, arg);
73 fprintf(stderr, "%s: no file name provided\n", whoami);
77 stream = fopen(filename, "w");
81 fprintf(stderr, "usage: %s [-debug] filename\n", whoami);
86 "/* This file is automatically generated. Do not edit it. */\n",
89 /* This routine will generate the contents of the file. */
91 if (fclose(stream) == EOF) {
97 #endif /* DONT_INCL_MAIN */