Parcourir la source

comment tweaks, remove unneeded variable

David Rose il y a 21 ans
Parent
commit
7a35411829
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      dtool/src/prckeys/makePrcKey.cxx

+ 3 - 3
dtool/src/prckeys/makePrcKey.cxx

@@ -286,13 +286,15 @@ usage() {
     "       Specifies the name and location of the public key output file\n"
     "       Specifies the name and location of the public key output file\n"
     "       to generate.  This file must then be named by the Config.pp\n"
     "       to generate.  This file must then be named by the Config.pp\n"
     "       variable PRC_PUBLIC_KEYS_FILENAME so that it will be compiled\n"
     "       variable PRC_PUBLIC_KEYS_FILENAME so that it will be compiled\n"
-    "       in with libdtool and available to verify signatures.\n\n"
+    "       in with libdtool and available to verify signatures.  If this\n"
+    "       option is omitted, the previously-compiled value is used.\n\n"
 
 
     "   -b priv_outfile#.cxx\n"
     "   -b priv_outfile#.cxx\n"
     "       Specifies the name and location of the private key output file(s)\n"
     "       Specifies the name and location of the private key output file(s)\n"
     "       to generate.  A different output file will be generated for each\n"
     "       to generate.  A different output file will be generated for each\n"
     "       different trust level; the hash mark '#' appearing in the file\n"
     "       different trust level; the hash mark '#' appearing in the file\n"
     "       name will be filled in with the corresponding numeric trust level.\n"
     "       name will be filled in with the corresponding numeric trust level.\n"
+    "       The hash mark may be omitted if you only require one trust level.\n"
     "       When compiled against dtool, each of these files will generate\n"
     "       When compiled against dtool, each of these files will generate\n"
     "       a program that can be used to sign a prc file with the corresponding\n"
     "       a program that can be used to sign a prc file with the corresponding\n"
     "       trust level.\n\n"
     "       trust level.\n\n"
@@ -395,8 +397,6 @@ main(int argc, char *argv[]) {
     exit(1);
     exit(1);
   }
   }
 
 
-  int max_key_number = 0;
-
   vector_int key_numbers;
   vector_int key_numbers;
   for (int i = 1; i < argc; i++) {
   for (int i = 1; i < argc; i++) {
     char *endptr;
     char *endptr;