Index: gap-autpgrp-1.5/doc/make_doc
===================================================================
--- gap-autpgrp-1.5.orig/doc/make_doc	2013-12-26 19:02:27.666330954 +0100
+++ gap-autpgrp-1.5/doc/make_doc	2013-12-27 15:11:49.033198265 +0100
@@ -10,13 +10,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)
@@ -27,7 +28,7 @@
 # The HTML version of the manual
 mkdir -p ../htm
 echo "Creating HTML documentation"
-../../../etc/convert.pl -c -n AutPGrp . ../htm
+/usr/share/gap/etc/convert.pl -c -n AutPGrp . ../htm
 
 #########################################################################
 ##
Index: gap-autpgrp-1.5/doc/manual.tex
===================================================================
--- gap-autpgrp-1.5.orig/doc/manual.tex	2013-12-26 19:02:27.666330954 +0100
+++ gap-autpgrp-1.5/doc/manual.tex	2014-02-19 22:50:23.296530763 +0100
@@ -7,7 +7,7 @@
 %%
 %F  gapmacro . . . . . . . . . . . . . . . . . read the GAP macro package
 %%
-\input ../../../doc/gapmacro
+\input /usr/share/gap/etc/gapmacro
 \Package{AutPGrp}
 %
 %
@@ -22,7 +22,6 @@
 %%
 %F  UseReferences . . . . . . . . . . . . . . . . . .  specify references
 %%
-\UseReferences{../../../doc/ext}
 \UseReferences{../../../doc/ref}
 %
 %
