Re: [A-A-P-develop] :action depend for D
Brought to you by:
vimboss
From: Lars I. I. <lar...@ig...> - 2003-11-05 23:13:08
|
----- Original Message ----- From: "Bram Moolenaar" <Br...@mo...> > > I notice you use Global.aap_toolsdir. That didn't exist yet! I'll add > it to Global.py. To be consistent I'll also add aap_modulesdir. Yes, I forgot to attach the patch. It was so easy I forgot that I made the change! > > > Also attached is the patch for d.aap that builds ddepcheck in case it > > couldn't be downloaded. Possibly it looks a bit hairy, but it works. > > > > Also, for the bootscript, could you add the files > > ddepcheck$OBJSUF and ddepcheck.map to the files to be deleted > > afterwards? (see the d.aap patch for what I mean.) > > Apparently the compiler produces these files without asking. It's OK to > delete them. Just make sure the compiler won't overwrite something. > > To make sure failure in compiling the program is detected, I suggest > using this: > > # If not downloaded, build it from local copy. > :progsearch _top.DDEPCHECK ddepcheck > > @if not _top.DDEPCHECK: > bindir = "`Global.aap_bindir`" > toolsdir = "`Global.aap_toolsdir`" > :mkdir {force} $bindir > :print ddepcheck not found, building from: $toolsdir/ddepcheck.d > :progsearch dc dmd > :sys $dc -O -of$bindir`os.sep`ddepcheck$EXESUF $toolsdir`os.sep`ddepcheck.d > :del {q} ddepcheck$OBJSUF ddepcheck.map > :progsearch _top.DDEPCHECK ddepcheck > @if not _top.DDEPCHECK: > :error Building ddepcheck failed or the program cannot be found. > > Now, there is one remaining problem: Aap may be installed on the system > and the directories are not writable by a normal user. The best > solution I can think of is to offer the user a choice: > > - become root and install ddepcheck globally (using :asroot) > - install for the current user only (in $HOME/bin) > - quit Hmm, sounds ok. Should I do this or are you onto it? > > BTW: Is there a Vim syntax highlighting file for the D language? AFAIK the only one is this: http://www.vim.org/scripts/script.php?script_id=379 It is very simple and outdated. But it's the one I use with a couple of keyword additions (foreach at least). Why? Do you want to program in D? Or do you want me to make a better one? Lars Ivar Igesund |