Re: [A-a-p-user] Problems with .117 main.aap: symlinks
Brought to you by:
vimboss
From: Matthew W. O. <mat...@we...> - 2003-01-23 16:24:58
|
-- Bram Moolenaar <Br...@mo...> wrote (on Thursday, 23 January 2003, 05:08 PM +0100): > > Matthew Weier O'Phinney wrote: > > I then did a 'which aap', and then did an 'ls -al' on that file. As it > > turned out, it was pointing to the previous install! (a .101 version, > > versus the new .117 version) I removed the link, and then symlinked to > > the new version, and all works well. > > > > When I took a look at the main.aap from the a-a-p distribution, I > > noticed that there are lines reading: > > > > # Create symbolic links for the program and docs dir. > > :print Creating a symbolic link for "aap" in $PREFIX/bin > > :mkdir {f} $PREFIX/bin > > @if os.path.exists(PREFIX + "/share/doc"): > > :print Creating a symbolic link for "aap" in $PREFIX/share/doc > > :sys ln -fs $dir/doc $PREFIX/share/doc > > > > Note that after the print statement that says aap is creating a symlink > > in $PREFIX/bin, there isn't a directive to create the symlink (which > > makes me wonder how it was created the first time, but that was a > > different main.aap, I'm sure). I'm thinking the statement should read > > something like: > > :sys ln -fs $dir/aap $PREFIX/bin/aap > > That's strange, my version of main.aap does include that line, just > below the ":mkdir". I just checked CVS and it's there as well. How did > you manage to loose this line? Not sure. I've run an 'aap fetch' from my Exec directory three times today, and neither time has it shown up. Each time, though, it's shown main.aap as having been modified, but I never see any changes in it. I discovered after the second time that a number of files didn't have the user set to write permissions -- I changed that, and also made the user permissions sticky so that the files could be modified when aap fetches from cvs. Still no luck though. > > Also, the symlink created for the documentation doesn't make sense -- it > > ends up pointing to $PREFIX/share/doc/doc, when it should point to > > $PREFIX/share/doc/aap. > > Right, "aap" should be added here. After fixing that the part of > main.aap that creates the links looks like this: > > # Create symbolic links for the program and docs dir. > :print Creating a symbolic link for "aap" in $PREFIX/bin > :mkdir {f} $PREFIX/bin > :sys ln -fs $dir/aap $PREFIX/bin/aap > @if os.path.exists(PREFIX + "/share/doc"): > :print Creating a symbolic link for "aap" in $PREFIX/share/doc > :sys ln -fs $dir/doc $PREFIX/share/doc/aap Oh, good -- I was on the right track, then. I'll modify my main.aap and make a backup of it, just in case. Maybe I should grab a fresh copy of it, too... -- Matthew Weier O'Phinney ma...@we... |