Changeset 13959
- Timestamp:
- Jul 13, 2010, 8:48:32 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/tools/asdf.lisp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/tools/asdf.lisp
r13888 r13959 71 71 (eval-when (:load-toplevel :compile-toplevel :execute) 72 72 (let* ((asdf-version ;; the 1+ helps the version bumping script discriminate 73 (subseq "VERSION:2.00 3" (1+ (length "VERSION")))) ; NB: same as 2.105.73 (subseq "VERSION:2.004" (1+ (length "VERSION")))) ; NB: same as 2.111. 74 74 (existing-asdf (find-package :asdf)) 75 75 (vername '#:*asdf-version*) … … 728 728 #+sbcl (defun get-uid () (sb-unix:unix-getuid)) 729 729 #+cmu (defun get-uid () (unix:unix-getuid)) 730 #+ecl (ffi:clines "#include <sys/types.h>" "#include <unistd.h>") 731 #+ecl (defun get-uid () (ffi:c-inline () () :int "getuid()" :one-liner t)) 730 #+ecl #.(cl:and (cl:< ext:+ecl-version-number+ 100601) 731 '(ffi:clines "#include <sys/types.h>" "#include <unistd.h>")) 732 #+ecl (defun get-uid () 733 #.(cl:if (cl:< ext:+ecl-version-number+ 100601) 734 '(ffi:c-inline () () :int "getuid()" :one-liner t) 735 '(ext::getuid))) 732 736 #+allegro (defun get-uid () (excl.osi:getuid)) 733 737 #-(or cmu sbcl clisp allegro ecl) … … 1073 1077 (defun system-registered-p (name) 1074 1078 (gethash (coerce-name name) *defined-systems*)) 1079 1080 (defun clear-system (name) 1081 "Clear the entry for a system in the database of systems previously loaded. 1082 Note that this does NOT in any way cause the code of the system to be unloaded." 1083 ;; There is no "unload" operation in Common Lisp, and a general such operation 1084 ;; cannot be portably written, considering how much CL relies on side-effects 1085 ;; of global data structures. 1086 ;; Note that this does a setf gethash instead of a remhash 1087 ;; this way there remains a hint in the *defined-systems* table 1088 ;; that the system was loaded at some point. 1089 (setf (gethash (coerce-name name) *defined-systems*) nil)) 1075 1090 1076 1091 (defun map-systems (fn) … … 2393 2408 '((:x86-64 :amd64 :x86_64 :x8664-target) 2394 2409 (:x86 :i686 :i586 :pentium3 :i486 :i386 :pc386 :iapx386 :x8632-target :pentium4) 2395 :hppa64 :hppa :ppc64 (:ppc32 :ppc :powerpc) :sparc64 :sparc)) 2410 :hppa64 :hppa :ppc64 (:ppc32 :ppc :powerpc) :sparc64 :sparc 2411 :java-1.4 :java-1.5 :java-1.6 :java-1.7)) 2412 2396 2413 2397 2414 (defun lisp-version-string () … … 2410 2427 (:+ics "")) 2411 2428 (if (member :64bit *features*) "-64bit" "")) 2429 #+armedbear (format nil "~a-fasl~a" s system::*fasl-version*) 2412 2430 #+clisp (subseq s 0 (position #\space s)) 2413 2431 #+clozure (format nil "~d.~d-fasl~d" … … 2424 2442 #+lispworks (format nil "~A~@[~A~]" s 2425 2443 (when (member :lispworks-64bit *features*) "-64bit")) 2426 ;; #+sbcl (format nil "~a-fasl~d" s sb-fasl:+fasl-file-version+) ; f asl-f-v is redundant2427 #+(or armedbearcormanlisp mcl sbcl scl) s2444 ;; #+sbcl (format nil "~a-fasl~d" s sb-fasl:+fasl-file-version+) ; f-f-v redundant w/ version 2445 #+(or cormanlisp mcl sbcl scl) s 2428 2446 #-(or allegro armedbear clisp clozure cmu cormanlisp digitool 2429 2447 ecl gcl lispworks mcl sbcl scl) s)) … … 2509 2527 ;;; read-windows-registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Common AppData 2510 2528 ,(try (getenv "ALLUSERSPROFILE") "Application Data/common-lisp/config/")))) 2511 (list #p"/etc/ "))))2529 (list #p"/etc/common-lisp/")))) 2512 2530 (defun in-first-directory (dirs x) 2513 2531 (loop :for dir :in dirs … … 2956 2974 2957 2975 (defun delete-file-if-exists (x) 2958 (when ( probe-file x)2976 (when (and x (probe-file x)) 2959 2977 (delete-file x))) 2960 2978 … … 3353 3371 (setf (source-registry) (compute-source-registry parameter))) 3354 3372 3355 ;; checks an initial variable to see whether the state is initialized3373 ;; Checks an initial variable to see whether the state is initialized 3356 3374 ;; or cleared. In the former case, return current configuration; in 3357 3375 ;; the latter, initialize. ASDF will call this function at the start 3358 ;; of (asdf:find-system). 3359 (defun ensure-source-registry () 3376 ;; of (asdf:find-system) to make sure the source registry is initialized. 3377 ;; However, it will do so *without* a parameter, at which point it 3378 ;; will be too late to provide a parameter to this function, though 3379 ;; you may override the configuration explicitly by calling 3380 ;; initialize-source-registry directly with your parameter. 3381 (defun ensure-source-registry (&optional parameter) 3360 3382 (if (source-registry-initialized-p) 3361 3383 (source-registry) 3362 (initialize-source-registry )))3384 (initialize-source-registry parameter))) 3363 3385 3364 3386 (defun sysdef-source-registry-search (system)
Note:
See TracChangeset
for help on using the changeset viewer.
