[Developers] absolute paths in THORNLIST

Frank Loeffler knarf at cct.lsu.edu
Mon Feb 9 12:54:06 CST 2009


Hi,

the attaches patch allows for absolute paths in THORNLIST. It requires
'grep' to be available.

Frank


Index: Makefile
===================================================================
RCS file: /cactusdevcvs/Cactus/Makefile,v
retrieving revision 1.178
diff -u -r1.178 Makefile
--- Makefile	26 Jan 2009 23:27:22 -0000	1.178
+++ Makefile	9 Feb 2009 18:44:22 -0000
@@ -64,9 +64,14 @@
 export TPARFLAGS FPARFLAGS
 
 # Directory for configuration options
+
+# set $(THORNLIST_DIR) to "." if it is not set already and if
+# $(THORNLIST) does not start with a slash
 ifeq ($(strip $(THORNLIST_DIR)), )
+ifeq ($(shell echo $(strip $(THORNLIST)) | grep '^/'),)
 THORNLIST_DIR = "."
 endif
+endif
 
 # End of parallel make stuff
 


--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  text/plain (text body -- kept)
---


More information about the Developers mailing list