$NetBSD: patch-aa,v 1.2 2002/11/23 22:34:23 cjep Exp $

--- main.aap.orig	Thu Nov 14 09:17:37 2002
+++ main.aap
@@ -41,19 +41,21 @@
 	@if not os.access(PREFIX, os.W_OK):
 	    :error Install directory is not writable: $PREFIX
 	dir = $PREFIX/lib/aap/Exec-$VERSIONSTR
+	docdir = $PREFIX/share/doc/aap
 
 	# Copy the files.
-	:mkdir {r}{f} $dir/doc
+	:mkdir {r}{f} $dir
+	:mkdir {r}{f} $docdir
 	:copy *.py *.pyc *.pyo aap $dir
 	:copy COPYING README.txt filetype.txt default.aap $dir
-	:copy doc/*.html doc/exec.pdf $dir/doc
+	:copy doc/*.html doc/exec.pdf $docdir
 
 	# Create symbolic links for the program and docs dir.
 	:print Creating a symbolic link for "aap" in $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
+#	@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
     @else:
 	:print On this system you will have to do this manually:
 	:print 1. Add the directory "`os.getcwd()`" to your $$PATH
