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>
17 #include <mit-cpyright.h>
30 #include "des_internal.h"
31 #include "des_prototypes.h"
35 #ifndef DONT_INCL_MAIN
37 #include "AFS_component_version_number.c"
40 main(int argc, char *argv[])
47 filename = (char *)NULL;
49 while (argc--, *++argv) {
52 if (!strcmp(arg, "-d") && !strcmp(arg, "-debug"))
55 fprintf(stderr, "%s: unknown control argument %s\n", whoami,
59 } else if (filename) {
60 fprintf(stderr, "%s: multiple file names provided: %s, %s\n",
61 whoami, filename, arg);
68 fprintf(stderr, "%s: no file name provided\n", whoami);
72 stream = fopen(filename, "w");
76 fprintf(stderr, "usage: %s [-debug] filename\n", whoami);
80 fputs("/* This file is automatically generated. Do not edit it. */\n",
83 /* This routine will generate the contents of the file. */
85 if (fclose(stream) == EOF) {
91 #endif /* DONT_INCL_MAIN */