Re: symlink, scp:// and filepath slashes
Bram Moolenaar <[email protected]> Mon, 01 Mar 2004 20:59:26 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Scott Henry Harrison wrote: > I am noticing that symlink and PREFIX=scp:// are not > working together (A-A-P version 1.057). > > For example, > WEBDIR=usr/local/www/data > :symlink $(WEBDIR)/welcome.html $(WEBDIR)/index.html > > :symlink "usr/local/www/data/welcome.html" "usr/local/www/data/index.html" > failed: [Errno 2] No such file or directory I don't see "scp://" or $PREFIX being used there. Anyway, Aap cannot make a symbolic link over scp://. It is only supported for local files. One exception is "rsync://", although the default setting is to copy the file a link points to, not the link itself. You can define $RSYNC to change that. But then it still only works for :copy, not for :symlink. > Also, filepath slashing seems a little unintelligent > (but maybe that's just me :) ): > > WEBDIR=usr/local/www/data > :symlink $(WEBDIR)welcome.html $(WEBDIR)index.html > > :symlink "usr/local/www/datawelcome.html" "usr/local/www/dataindex.html" > failed: [Errno 2] No such file or directory You have to take care of slashes yourself in this situation. Aap sees only strings, it doesn't know that these are file names until the arguments are used. Compare that with a shell script. -- Vim is like Emacs without all the typing. (John "Johann" Spetz) /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click