Index: gap-autpgrp-1.10/doc/make_doc
===================================================================
--- gap-autpgrp-1.10.orig/doc/make_doc
+++ gap-autpgrp-1.10/doc/make_doc
@@ -8,13 +8,14 @@
 ##  and etc/convert.pl) documentation for the AutPGrp Package.
 ##
 
+set -e
 echo "TeXing documentation"
 # TeX the manual
 tex manual
 # when there's a bibliography uncomment next line
 #bibtex manual
 # TeX the manual again to incorporate the ToC ... and build the index
-tex manual; ../../../doc/manualindex manual
+tex manual; /usr/share/gap/etc/manualindex manual
 # Finally TeX the manual again to get cross-references right
 tex manual
 # Create the PostScript version (uncomment next line, if needed)
@@ -25,7 +26,7 @@ pdftex manual; pdftex manual
 # The HTML version of the manual
 mkdir -p ../htm
 echo "Creating HTML documentation"
-../../../etc/convert.pl -i -u -c -n AutPGrp . ../htm
+GAP_CONVERT_DATE="July 2018" /usr/share/gap/etc/convert.pl -i -u -c -n AutPGrp . ../htm
 
 #########################################################################
 ##
Index: gap-autpgrp-1.10/doc/manual.tex
===================================================================
--- gap-autpgrp-1.10.orig/doc/manual.tex
+++ gap-autpgrp-1.10/doc/manual.tex
@@ -2,7 +2,7 @@
 %%
 %F  gapmacro . . . . . . . . . . . . . . . . . read the GAP macro package
 %%
-\input ../../../doc/gapmacro
+\input /usr/share/gap/etc/gapmacro
 \Package{AutPGrp}
 %
 %
@@ -17,7 +17,7 @@
 %%
 %F  UseReferences . . . . . . . . . . . . . . . . . .  specify references
 %%
-\UseReferences{../../../doc/ref}
+\UseReferences{/usr/share/gap/doc/ref}
 %
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
