mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
adapted icmake scripts to icmake 8.00.02, approaching 10.4.0
This commit is contained in:
parent
a445a038bb
commit
fe113766fc
15 changed files with 31 additions and 100 deletions
|
@ -1,4 +1,9 @@
|
|||
C++-annotations (10.3.1) NOT YET TAGGED
|
||||
C++-annotations (10.4.0) NOT YET TAGGED
|
||||
|
||||
* Added a section about reference bindings to the Overloading chapter
|
||||
|
||||
* Added cplusplus.css which can be used to fine-tune the layout of the
|
||||
Annotatiions' html conversion.
|
||||
|
||||
* Standardized the installation procedure
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ void distclean()
|
|||
run("rm -f html/cppindex.html html/cplusplus.index zip/cplusplus.*.zip");
|
||||
|
||||
extensions = strtok("aux dvi idx ilg ind latex log out pdf ps toc", " ");
|
||||
for(idx = sizeof(extensions); idx--; )
|
||||
for(idx = listlen(extensions); idx--; )
|
||||
run("rm -f latex/cplusplus*." + extensions[idx]);
|
||||
|
||||
run("rm -rf src/*/*/o src/*/o");
|
||||
|
|
|
@ -10,12 +10,12 @@ string stringlist(string path, string subdir, string pattern)
|
|||
|
||||
lst = makelist(O_SUBDIR, "*");
|
||||
|
||||
for (idx = sizeof(lst); idx--; )
|
||||
for (idx = listlen(lst); idx--; )
|
||||
ret += stringlist(path, element(idx, lst), pattern);
|
||||
|
||||
lst = makelist(pattern);
|
||||
|
||||
for (idx = sizeof(lst); idx--; )
|
||||
for (idx = listlen(lst); idx--; )
|
||||
ret += path + element(idx, lst) + " ";
|
||||
|
||||
chdir("..");
|
||||
|
@ -30,7 +30,7 @@ void cleanup(string task, string files)
|
|||
|
||||
filelist = strtok(files, " ");
|
||||
|
||||
for (idx = sizeof(filelist); idx--; )
|
||||
for (idx = listlen(filelist); idx--; )
|
||||
system("tmp/bin/" + task + " -q " + element(idx, filelist));
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ void htmldoc()
|
|||
htmlList = (list)"cplusplus.html" + makelist("cplusplus??.html");
|
||||
|
||||
// patch the html-files
|
||||
for (idx = sizeof(htmlList); idx--; )
|
||||
for (idx = listlen(htmlList); idx--; )
|
||||
{
|
||||
html = element(idx, htmlList);
|
||||
system("../../../scripts/patchhtml < " + html + " > _" + html);
|
||||
|
@ -95,7 +95,7 @@ void htmldoc()
|
|||
|
||||
// remove the <index> entries from the
|
||||
// html files
|
||||
for (idx = sizeof(htmlList); idx--; )
|
||||
for (idx = listlen(htmlList); idx--; )
|
||||
{
|
||||
html = element(idx, htmlList);
|
||||
system("../../bin/rmindexlines < " + html + " > _" + html);
|
||||
|
|
|
@ -37,7 +37,7 @@ void compile(string dir)
|
|||
|
||||
sources = makelist("*.cc");
|
||||
|
||||
for (idx = sizeof(sources); idx--; )
|
||||
for (idx = listlen(sources); idx--; )
|
||||
tryCompile(sources[idx]);
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ void examples()
|
|||
,
|
||||
":");
|
||||
|
||||
for (idx = sizeof(dirs); idx--; )
|
||||
for (idx = listlen(dirs); idx--; )
|
||||
{
|
||||
compile(dirs[idx]);
|
||||
chdir(cwd);
|
||||
|
|
|
@ -17,7 +17,7 @@ list findAll(string type, string source, string pattern)
|
|||
|
||||
entries = backtick(cmd + " " + pattern + " -printf \"%f\\n\"");
|
||||
|
||||
for (idx = sizeof(entries); idx--; )
|
||||
for (idx = listlen(entries); idx--; )
|
||||
ret += (list)cutEoln(entries[idx]);
|
||||
|
||||
chdir(g_cwd);
|
||||
|
|
|
@ -17,22 +17,22 @@ void logInstall(string src, string pattern, string dest)
|
|||
|
||||
entries = findAll("f", src, pattern);
|
||||
|
||||
for (idx = sizeof(entries); idx--; )
|
||||
for (idx = listlen(entries); idx--; )
|
||||
run("cp " + src + entries[idx] + " " + dest);
|
||||
|
||||
chdir(dest);
|
||||
for (idx = sizeof(entries); idx--; )
|
||||
for (idx = listlen(entries); idx--; )
|
||||
log(entries[idx]);
|
||||
|
||||
chdir(g_cwd);
|
||||
entries = findAll("l", src, pattern);
|
||||
|
||||
for (idx = sizeof(entries); idx--; )
|
||||
for (idx = listlen(entries); idx--; )
|
||||
run("cp " CPOPTS " " + src + entries[idx] + " " + dest);
|
||||
|
||||
chdir(dest);
|
||||
|
||||
for (idx = sizeof(entries); idx--; )
|
||||
for (idx = listlen(entries); idx--; )
|
||||
logLink(entries[idx]);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,14 +23,14 @@ void logZip(string src, string names, string dest)
|
|||
else
|
||||
files = strtok(names, " ");
|
||||
|
||||
for (idx = sizeof(files); idx--; )
|
||||
for (idx = listlen(files); idx--; )
|
||||
{
|
||||
file = files[idx];
|
||||
run("gzip -n -9 < " + file + " > " + g_cwd + dest + file + ".gz");
|
||||
}
|
||||
|
||||
chdir(g_cwd + dest);
|
||||
for (idx = sizeof(files); idx--; )
|
||||
for (idx = listlen(files); idx--; )
|
||||
log(files[idx] + ".gz");
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ void readlog()
|
|||
{
|
||||
list line;
|
||||
|
||||
while (line = fgets(g_logPath, (int)line[1]))
|
||||
while (line = fgets(g_logPath, line))
|
||||
g_log += strtok(line[0], "\n"); // add logfile entries w/o \n
|
||||
}
|
||||
|
||||
|
|
|
@ -10,17 +10,17 @@ void removeDir(string dir)
|
|||
return;
|
||||
|
||||
parts = findAll("d", dir, ""); // if there are still subdirs
|
||||
if (sizeof(parts) != 0) // then remove at some later stage
|
||||
if (listlen(parts) != 0) // then remove at some later stage
|
||||
return;
|
||||
|
||||
chdir(dir);
|
||||
parts = strtok(dir, "/");
|
||||
|
||||
for (idx = sizeof(parts); idx--; )
|
||||
for (idx = listlen(parts); idx--; )
|
||||
{
|
||||
entries = backtick("ls -A");
|
||||
|
||||
if (sizeof(entries) != 0)
|
||||
if (listlen(entries) != 0)
|
||||
{
|
||||
if (warn)
|
||||
printf("not removing non-empty dir ", dir, "\n");
|
||||
|
|
|
@ -15,7 +15,7 @@ void uninstall()
|
|||
|
||||
readlog();
|
||||
|
||||
for (idx = sizeof(g_log); idx--; )
|
||||
for (idx = listlen(g_log); idx--; )
|
||||
{
|
||||
entry = strtok(g_log[idx], " ");
|
||||
|
||||
|
@ -31,7 +31,7 @@ void uninstall()
|
|||
run("rm " + entry[2]);
|
||||
}
|
||||
|
||||
for (idx = 0, nDirs = sizeof(dirs); idx != nDirs; ++idx)
|
||||
for (idx = 0, nDirs = listlen(dirs); idx != nDirs; ++idx)
|
||||
removeDir(dirs[idx]);
|
||||
|
||||
run("rm " + g_logPath);
|
||||
|
|
|
@ -4,7 +4,7 @@ void writeLog()
|
|||
|
||||
if (g_logPath != "") // do not store uninstall info
|
||||
{
|
||||
for (idx = sizeof(g_log); idx--; )
|
||||
for (idx = listlen(g_log); idx--; )
|
||||
fprintf(g_logPath, g_log[idx], "\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ This file lists non-standard software only. Thus, standard utilities like cp,
|
|||
mv, sed, etc, etc, are not explicitly mentioned. Neither are the gcc and g++
|
||||
compilers explicitly mentioned, but fairly recent ones are assumed.
|
||||
|
||||
Required software for building the C++ Annotations 10.3.0
|
||||
Required software for building the C++ Annotations 10.4.0
|
||||
---------------------------------------------------------
|
||||
|
||||
icmake (>= 7.22.01), yodl (>= 3.05.01), libbobcat-dev (>= 3.25.01), flex, zip,
|
||||
icmake (>= 8.00.02), yodl (>= 3.06.00), libbobcat-dev (>= 4.01.03), flex, zip,
|
||||
texlive-latex-base, texlive-generic-recommended, texlive-latex-recommended,
|
||||
texlive-fonts-recommended, ghostscript
|
||||
|
||||
|
|
|
@ -133,4 +133,3 @@ lchapter(CONCRETE)(Concrete Examples)
|
|||
includefile(concrete)
|
||||
|
||||
IFDEF(latex)(latexcommand(\printindex))()
|
||||
|
||||
|
|
|
@ -260,76 +260,3 @@ IFDEF(html)(\
|
|||
)
|
||||
)()
|
||||
|
||||
redef(XXsethtmldocumentheader)(3)(\
|
||||
XXifnzero(XXhtmlfive)(NOTRANS(<!DOCTYPE html>))\
|
||||
NOTRANS(<html><head>)XXnl()\
|
||||
XXifnempty(XXhtmlmetacharset)
|
||||
(\
|
||||
NOTRANS(<meta charset=")\
|
||||
SYMBOLVALUE(XXhtmlmetacharset)NOTRANS(">)XXnl()\
|
||||
INTERNALINDEX(preset metacharset SYMBOLVALUE(XXhtmlmetacharset))\
|
||||
)\
|
||||
XXifnempty(ARG1)
|
||||
(\
|
||||
TYPEOUT(Document title: ARG1)\
|
||||
NOTRANS(<title>)ARG1+NOTRANS(</title>)XXnl()\
|
||||
INTERNALINDEX(preset title ARG1)\
|
||||
)\
|
||||
XXifnempty(XXheadopt)(\
|
||||
SYMBOLVALUE(XXheadopt)\
|
||||
INTERNALINDEX(preset headopt SYMBOLVALUE(XXheadopt))\
|
||||
)\
|
||||
XXifnzero(XXhtmlimgstyle)(\
|
||||
htmlstyle(figure)(text-align: center)\
|
||||
htmlstyle(img)(vertical-align: center)\
|
||||
)
|
||||
XXifnempty(XXhtmlstyleopt)(\
|
||||
NOTRANS(<style type="text/css">)XXnl()\
|
||||
EVAL(SYMBOLVALUE(XXhtmlstyleopt))\
|
||||
NOTRANS(</style>)XXnl()\
|
||||
)\
|
||||
IFSTREQUAL(XXmailto)()(\
|
||||
WARNING(no NOTRANS(mailto(..)) set, document will be without!)\
|
||||
)(\
|
||||
NOTRANS(<link rev="made" href="mailto:)\
|
||||
SYMBOLVALUE(XXmailto)\
|
||||
NOTRANS(">)XXnl()\
|
||||
)\
|
||||
XXifnempty(XXheadfile)(\
|
||||
INTERNALINDEX(preset headfile SYMBOLVALUE(XXheadfile))\
|
||||
EVAL(NOTRANS(includeverbatim+CHAR(40))\
|
||||
SYMBOLVALUE(XXheadfile)CHAR(41))\
|
||||
)
|
||||
NOTRANS(</head>)\
|
||||
XXnl()\
|
||||
NOTRANS(<body)\
|
||||
XXifnempty(XXbodyopt)(\
|
||||
SYMBOLVALUE(XXbodyopt)\
|
||||
INTERNALINDEX(set bodytagopt SYMBOLVALUE(XXbodyopt))\
|
||||
)\
|
||||
NOTRANS(>)\
|
||||
XXnl()\
|
||||
NOTRANS(<hr>)\
|
||||
XXnl()\
|
||||
NOTRANS(<h1 id="title">)ARG1+NOTRANS(</h1>)\
|
||||
XXnl()\
|
||||
XXifnempty(ARG2)
|
||||
(\
|
||||
NOTRANS(<h2 id="author">)ARG2+NOTRANS(</h2>)\
|
||||
XXnl()\
|
||||
)\
|
||||
XXifnempty(XXaffilstring)
|
||||
(\
|
||||
XXnl()\
|
||||
NOTRANS(<h2 id="affiliation">)SYMBOLVALUE(XXaffilstring)NOTRANS(</h2>)\
|
||||
)\
|
||||
XXifnempty(ARG3)
|
||||
(\
|
||||
NOTRANS(<h2 id="date">)ARG3+NOTRANS(</h2>)\
|
||||
XXnl()\
|
||||
)\
|
||||
XXabstract()\
|
||||
XXnl()\
|
||||
XXsettitleclearpage()\
|
||||
XXtableofcontents()\
|
||||
)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SUBST(DOCVERSION)(10.3.0)
|
||||
SUBST(DOCVERSION)(10.4.0)
|
||||
SUBST(YEARS)(1994 - 2015)
|
||||
|
|
Loading…
Reference in a new issue