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

Commits:

5 changed files:

Changes:

  • bin/make-dist.sh
    ... ... @@ -167,7 +167,7 @@ TARGET="`echo $1 | sed 's:/*$::'`"
    167 167
     # Choose a version based on the git hash as the default version.  We
    
    168 168
     # only compute a default if the git hash looks like a snapshot
    
    169 169
     # ("snapshot-yyyy-mm") or a release number..
    
    170
    -DEFAULT_VERSION="`$TARGET/lisp/lisp -print-version`"
    
    170
    +DEFAULT_VERSION="`$TARGET/lisp/lisp --version`"
    
    171 171
     
    
    172 172
     if [ -z "$VERSION" ]; then
    
    173 173
         # If a default version exists, use it. Otherwise this is an
    

  • src/code/commandline.lisp
    ... ... @@ -400,18 +400,14 @@
    400 400
       (format t "~A~%" (lisp-implementation-version))
    
    401 401
       (ext:quit))
    
    402 402
     
    
    403
    +;; the switches "-version" and "--version" are never actually called
    
    404
    +;; from lisp because main() handles it and returns before the lisp
    
    405
    +;; initial function is ever run.  It's here so that -help will print
    
    406
    +;; it out so the user knows about it.
    
    403 407
     (defswitch "version" #'version-switch-demon
    
    404
    -  "Prints the cmucl version and exits")
    
    408
    +  "Prints the cmucl version and exits, without loading the lisp core.")
    
    405 409
     
    
    406 410
     ;; Make --version work for the benefit of those who are accustomed to
    
    407 411
     ;; GNU software.
    
    408 412
     (defswitch "-version" #'version-switch-demon
    
    409 413
       "Prints the cmucl version and exits; same as -version")
    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/general-info/release-21f.md
    ... ... @@ -27,6 +27,8 @@ public domain.
    27 27
         * The RNG has changed from an old version of xoroshiro128+ to
    
    28 28
           xoroshiro128**.  This means sequences of random numbers will be
    
    29 29
           different from before.  See ~~#276~~.
    
    30
    +    * The layout of the distribution has changed.  Version numbers are
    
    31
    +      added to files and directories.  For the exact layout, see !261.
    
    30 32
       * ANSI compliance fixes:
    
    31 33
       * Bug fixes:
    
    32 34
       * Gitlab tickets:
    
    ... ... @@ -112,6 +114,8 @@ public domain.
    112 114
         * ~~#360~~ Adding site-init file
    
    113 115
         * ~~#361~~ Add herald item to mention where to report issues
    
    114 116
         * ~~#362~~ Simplify "library:" search-list
    
    117
    +    * ~~#363~~ Version numbers added to files and directories.  The
    
    118
    +      distribution layout has changed.
    
    115 119
         * ~~#364~~ Add interface to `mkdtemp` and `mkstemp`
    
    116 120
         * ~~#367~~ Add stream:string-count-octets to count octets in a string
    
    117 121
         * ~~#369~~ Improve docstring for `unix::unix-setlocale`
    

  • src/i18n/locale/cmucl.pot
    ... ... @@ -6216,13 +6216,6 @@ 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
    -
    
    6226 6219
     #: src/code/env-access.lisp
    
    6227 6220
     msgid ""
    
    6228 6221
     "Returns information about the symbol VAR in the lexical environment ENV.\n"
    

  • src/lisp/lisp.c
    ... ... @@ -342,7 +342,7 @@ search_core(const char *lib, const char *default_core)
    342 342
     	    return buf;
    
    343 343
     	} else {
    
    344 344
     	    if (debug_lisp_search) {
    
    345
    -		fprintf(stderr, "Found it, but we can't read it!\n");
    
    345
    +		fprintf(stderr, "Does not exist, or can't read it if it does!\n");
    
    346 346
     	    }
    
    347 347
     	}
    
    348 348
         } while (*lib++ == ':');
    
    ... ... @@ -679,7 +679,8 @@ main(int argc, const char *argv[], const char *envp[])
    679 679
     	    debug_lisp_search = TRUE;
    
    680 680
             } else if (strcmp(arg, "-unidata") == 0) {
    
    681 681
               unidata = *++argptr;
    
    682
    -        } else if (strcmp(arg, "-print-version") == 0) {
    
    682
    +        } else if ((strcmp(arg, "-version") == 0) ||
    
    683
    +		   (strcmp(arg, "--version") == 0)) {
    
    683 684
     	    /*
    
    684 685
     	     * Print the version and exit; we don't want to do
    
    685 686
     	     * anything else!