axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] A patch to define SPD and SYS


From: David MENTRE
Subject: [Axiom-developer] A patch to define SPD and SYS
Date: Wed, 16 Jul 2003 15:20:23 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Hell Tim the bus driver, ;-)

Here is a small patch to main Makefile that defines SPD and SYS from
respectively pwd and $AXIOM. I hope it is the behavior you intendeed.

Best regards,
d.

--- axiom-cvs-2003-06-25/new/new/Makefile.pamphlet      Sat Jul 12 18:43:08 2003
+++ axiom-cvs-2003-06-25-dm/new/new/Makefile.pamphlet   Wed Jul 16 15:10:29 2003
@@ -670,10 +670,16 @@
 file lookup is in conditional lisp code so other lisps will not 
 see the file load. The collectfn.lsp code is used by GCL to generate
 the ``.fn'' files which are used to optimize function calling.
+
+When defining the environment, the [[SPD]] variable is defined as the
+current directory. [[SYS]] is taken as the last non-directory part of
+environment variable [[$AXIOM]] (e.g. if [[$AXIOM=/(a-path)/mnt/linux]]
+then [[SYS=linux]]). It is \emph{mandatory} that [[$AXIOM]] does
+\emph{not} contain any trailing slash, because of [[notdir]] behaviour.
 <<environment>>=
 
-SPD=/home/axiomgnu/new
-SYS=linux
+SPD=$(shell pwd)
+SYS=$(notdir $(AXIOM))
 SPAD=${SPD}/mnt/${SYS}
 LSP=${SPD}/lsp
 <<GCLVERSION>>

-- 
 address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]