From: Per P. <per...@ma...> - 2003-09-04 20:28:32
|
Hi, I'm having a small (possibly two) problem(s) with target grace_octave_path.m in graceplot/Makefile on OS X. grace_octave_path.m: grace_octave_path.m.in cat grace_octave_path.m.in | sed -e "s:@ALTMPATH@:$(ALTMPATH)/$(GRDESTDIR):" > grace_octave_path.m In the file grace_octave_path.m @ALTMPATH@ comes out as "/" as if $(ALTMPATH) and $(GRDESTDIR) would evaluate to an empty string in the sed command. A little fiddling gives the following: 1) % cat extra/graceplot/grace_octave_path.m.in | sed -e "s:@ALTMPATH@:$(ALTMPATH)/$(GRDESTDIR):" Illegal variable name. 2) % cat extra/graceplot/grace_octave_path.m.in | sed -e "s:@ALTMPATH@:$ALTMPATH/$GRDESTDIR:" Bad : modifier in $ ("). 3) % cat extra/graceplot/grace_octave_path.m.in | sed -e "s.@ALTMPATH@.$ALTMPATH/$GRDESTDIR." (Works as intended) So, it seems that (1) sed dissaproves of $(VARNAME) (2) sed dissaproves : as delimiter (since ':' was the path delimiter in OS 4 through 9, OS X sometimes has funny interpretations of : and / when used together) (3) works fine on OS X, don't know if it is acceptable elsewhere. FWIW, sed -e "s/@ALTMPATH@/$ALTMPATH\/$GRDESTDIR/" also works. My knowledge of sed et al. is limited, so this is about as much info as I can provide on the problem. /Per On Monday, August 25, 2003, at 05:41 PM, Teemu Ikonen wrote: > > It's up to the package to provide scripts to shuffle the loadpath so > that > the functions are actually visible, the graceplot package contains an > example on how to do this. > > Any comments or suggestions are welcome. > > Teemu ------------ Per Persson Blekinge Institute of Technology Dept. of Signal Processing and Telecommunications www: http://www.its.bth.se/staff/pee e-mail: per...@bt... |