#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
file(MAKE_DIRECTORY ${OUTPUT_DIR}/programs)
file(COPY ${SOURCE_HTML_DIR}/header.html.in DESTINATION .)
file(COPY ${SOURCE_HTML_DIR}/footer.html DESTINATION .)
+ file(COPY ${SOURCE_HTML_DIR}/links.dat DESTINATION .)
endfunction()
function(POST_EXPORT_ACTIONS)
#include <boost/scoped_ptr.hpp>
#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/legacyheaders/smalloc.h"
#include "gromacs/commandline/cmdlinehelpcontext.h"
#include "gromacs/commandline/cmdlineparser.h"
-#include "gromacs/fileio/futil.h"
#include "gromacs/onlinehelp/helpformat.h"
#include "gromacs/onlinehelp/helpmanager.h"
#include "gromacs/onlinehelp/helptopic.h"
: links_(eHelpOutputFormat_Html)
{
initProgramLinks(&links_, modules);
- char *linksFilename = low_gmxlibfn("links.dat", FALSE, FALSE);
- if (linksFilename != NULL)
+ File linksFile("links.dat", "r");
+ std::string line;
+ while (linksFile.readLine(&line))
{
- scoped_ptr_sfree guard(linksFilename);
- File linksFile(linksFilename, "r");
- std::string line;
- while (linksFile.readLine(&line))
- {
- links_.addLink(line, "../online/" + line, line);
- }
+ links_.addLink(line, "../online/" + line, line);
}
+ linksFile.close();
setupHeaderAndFooter();
}