clean up osx_appl.ss, since the uninstalled mzscheme executable now finds its framework and collections without help
svn: r3279
This commit is contained in:
parent
3489cca5c4
commit
cd82e80dc6
|
@ -5,19 +5,10 @@
|
||||||
# OS X pre-make script
|
# OS X pre-make script
|
||||||
# builds resource files, makes template Starter.app and MrEd.app
|
# builds resource files, makes template Starter.app and MrEd.app
|
||||||
#
|
#
|
||||||
# the script must be run from the mrd build directory,
|
# the script must be run from the mred build directory,
|
||||||
# and srcdir must be provided as the first argument
|
# and srcdir must be provided as the first argument
|
||||||
|
|
||||||
PLTHOMEBASE="$1/.."
|
exec ${BUILDBASE}/mzscheme/mzscheme -qr "$0" "$1"
|
||||||
export PLTHOMEBASE
|
|
||||||
PLTHOME=
|
|
||||||
export PLTHOME
|
|
||||||
PLTCOLLECTS=
|
|
||||||
export PLTCOLLECTS
|
|
||||||
DYLD_FRAMEWORK_PATH=${BUILDBASE}/mzscheme:${DYLD_FRAMEWORK_PATH}
|
|
||||||
export DYLD_FRAMEWORK_PATH
|
|
||||||
shift 1
|
|
||||||
exec ${BUILDBASE}/mzscheme/mzscheme -xqr "$0"
|
|
||||||
echo "Couldn't start MzScheme!"
|
echo "Couldn't start MzScheme!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
@ -25,11 +16,6 @@ exit 1
|
||||||
|
|
||||||
(use-compiled-file-paths null)
|
(use-compiled-file-paths null)
|
||||||
|
|
||||||
(let ([p (getenv "PLTHOMEBASE")])
|
|
||||||
(let ([plthome (path->complete-path p)])
|
|
||||||
(putenv "PLTHOME" (path->string plthome))
|
|
||||||
(current-library-collection-paths (list (build-path plthome "collects")))))
|
|
||||||
|
|
||||||
(module osx_appl mzscheme
|
(module osx_appl mzscheme
|
||||||
|
|
||||||
(require (lib "plist.ss" "xml")
|
(require (lib "plist.ss" "xml")
|
||||||
|
@ -39,12 +25,10 @@ exit 1
|
||||||
(define rez-path (or (getenv "REZ")
|
(define rez-path (or (getenv "REZ")
|
||||||
"/Developer/Tools/Rez"))
|
"/Developer/Tools/Rez"))
|
||||||
|
|
||||||
; set plthome:
|
|
||||||
(define plthome (getenv "PLTHOME"))
|
|
||||||
(printf "plthome is ~a\n" plthome)
|
|
||||||
|
|
||||||
(define for-3m? (getenv "BUILDING_3M"))
|
(define for-3m? (getenv "BUILDING_3M"))
|
||||||
|
|
||||||
|
(define plthome (build-path (vector-ref (current-command-line-arguments) 0) 'up))
|
||||||
|
|
||||||
; Rez where needed:
|
; Rez where needed:
|
||||||
(let* ([cw-path (build-path plthome "src" "mac" "cw")]
|
(let* ([cw-path (build-path plthome "src" "mac" "cw")]
|
||||||
[rez-it (lambda (app)
|
[rez-it (lambda (app)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user