From a2d773e81b53c228119da7bd5fb13e76742a3813 Mon Sep 17 00:00:00 2001 From: David Berry Date: Wed, 22 Jan 2020 14:48:32 +0000 Subject: [PATCH] Correct builddocs for new source location --- builddocs.in | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/builddocs.in b/builddocs.in index 3240df38..599a2371 100644 --- a/builddocs.in +++ b/builddocs.in @@ -1,6 +1,6 @@ #! /bin/sh - -srcdir=. +here=. perldir=`dirname @PERL@` if test -z "$SST_DIR"; then if test -x starconf.status; then @@ -22,9 +22,10 @@ if test -z "$SST_DIR"; then export SST_DIR echo "SST_DIR set to $SST_DIR" fi -PATH="${srcdir}:${perldir}:${PATH}" +PATH="${here}:${perldir}:${PATH}" export PATH +srcdir="${here}/src" goodsource="${srcdir}/axis.c \ ${srcdir}/box.c \ ${srcdir}/channel.c \ @@ -95,15 +96,15 @@ goodsource="${srcdir}/axis.c \ ${srcdir}/zoommap.c" goodsource="${goodsource} \ - ${srcdir}/ast_link \ - ${srcdir}/ast_link_adam" + ${here}/ast_link \ + ${here}/ast_link_adam" -#chmod +x ${srcdir}/addcopyright -#chmod +x ${srcdir}/addlinks -#chmod +x ${srcdir}/addversion -#chmod +x ${srcdir}/doincludes -#chmod +x ${srcdir}/getatt -#chmod +x ${srcdir}/selectfc +#chmod +x ${here}/addcopyright +#chmod +x ${here}/addlinks +#chmod +x ${here}/addversion +#chmod +x ${here}/doincludes +#chmod +x ${here}/getatt +#chmod +x ${here}/selectfc rm -f .sst.tmp @@ -120,7 +121,7 @@ rm -f .sst.tmp getatt ${goodsource} >c_routines.tex cat getatt.labels >>global_c.labels; rm -f getatt.labels - getatt memory.c > memory_routines.tex + getatt ${srcdir}/memory.c > memory_routines.tex cat getatt.labels >>global_c.labels; rm -f getatt.labels getatt -u -f ${goodsource} >f_commands.tex @@ -129,10 +130,10 @@ rm -f .sst.tmp cat getatt.labels >>global_c.labels; rm -f getatt.labels ln -f global_f.labels global.labels - doincludes ${srcdir}/sun_master.tex \ + doincludes ${here}/sun_master.tex \ | selectfc -f | addlinks | addcopyright | addversion >sun210.tex ln -f global_c.labels global.labels - doincludes ${srcdir}/sun_master.tex \ + doincludes ${here}/sun_master.tex \ | selectfc | addlinks | addcopyright | addversion >sun211.tex rm -f global.labels global_f.labels global_c.labels