Re: :action depend for D

"Lars Ivar Igesund" <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <041e01c3a3f2$fb0a5f80$0200000a@mesmer>
----- Original Message ----- 
From: "Bram Moolenaar" <[email protected]>
>
> 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



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.