Raymond Toy pushed to branch issue-363-add-version-number at cmucl / cmucl

Commits:

4 changed files:

Changes:

  • src/code/commandline.lisp
    ... ... @@ -408,3 +408,10 @@
    408 408
     (defswitch "-version" #'version-switch-demon
    
    409 409
       "Prints the cmucl version and exits; same as -version")
    
    410 410
     
    
    411
    +;; This is never actually called from lisp because main() handles it
    
    412
    +;; and returns before the lisp initial function is ever run.  It's
    
    413
    +;; here so that -help will print it out so the user knows about it.
    
    414
    +(defswitch "print-version" #'version-switch-demon
    
    415
    +  "Like -version, but a core file doesn't have to loaded first.  The
    
    416
    + version is printed and lisp exits immediately before doing any of the
    
    417
    + core startup code.")

  • src/compiler/x86/parms.lisp
    ... ... @@ -380,9 +380,9 @@
    380 380
           :key-or-value
    
    381 381
     
    
    382 382
           lisp::*unidata-path*
    
    383
    +      lisp::*lisp-implementation-version*
    
    383 384
           ;; Spare symbols.  Rename these when you need to add some static
    
    384 385
           ;; symbols and don't want to do a cross-compile.
    
    385
    -      spare-9
    
    386 386
           spare-8
    
    387 387
           spare-7
    
    388 388
           spare-6
    

  • src/i18n/locale/cmucl.pot
    ... ... @@ -6216,6 +6216,13 @@ msgstr ""
    6216 6216
     msgid "Prints the cmucl version and exits; same as -version"
    
    6217 6217
     msgstr ""
    
    6218 6218
     
    
    6219
    +#: src/code/commandline.lisp
    
    6220
    +msgid ""
    
    6221
    +"Like -version, but a core file doesn't have to loaded first.  The\n"
    
    6222
    +" version is printed and lisp exits immediately before doing any of the\n"
    
    6223
    +" core startup code."
    
    6224
    +msgstr ""
    
    6225
    +
    
    6219 6226
     #: src/code/env-access.lisp
    
    6220 6227
     msgid ""
    
    6221 6228
     "Returns information about the symbol VAR in the lexical environment ENV.\n"
    

  • src/lisp/lisp.c
    ... ... @@ -913,6 +913,10 @@ main(int argc, const char *argv[], const char *envp[])
    913 913
         }
    
    914 914
     #endif
    
    915 915
         
    
    916
    +#ifdef LISP_IMPLEMENTATION_VERSION
    
    917
    +    SetSymbolValue(LISP_IMPLEMENTATION_VERSION, alloc_string(cmucl_version));
    
    918
    +#endif
    
    919
    +
    
    916 920
         /*
    
    917 921
          * Pick off sigint until the lisp system gets far enough along to
    
    918 922
          * install it's own.