Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
9c4b6821
Commit
9c4b6821
authored
May 22, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print changelog as docbook
parent
ad11b0fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
src/exe/co_convert/src/cnv_changelog.cpp
src/exe/co_convert/src/cnv_changelog.cpp
+50
-1
src/exe/co_convert/src/cnv_changelog.h
src/exe/co_convert/src/cnv_changelog.h
+2
-1
No files found.
src/exe/co_convert/src/cnv_changelog.cpp
View file @
9c4b6821
/*
* Proview $Id: cnv_changelog.cpp,v 1.
1 2006-02-27 06:17
:41 claes Exp $
* Proview $Id: cnv_changelog.cpp,v 1.
2 2006-05-22 13:31
:41 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -55,6 +55,7 @@ CnvChangeLog::CnvChangeLog( CnvCtx *cnv_ctx) :
read
(
"inor"
);
read
(
"klocknermoeller"
);
print
();
print_docbook
();
}
int
CnvChangeLog
::
read
(
char
*
module
)
...
...
@@ -223,4 +224,52 @@ void CnvChangeLog::print()
}
}
void
CnvChangeLog
::
print_docbook
()
{
char
timstr1
[
40
];
pwr_tFileName
fname
=
"$pwre_croot/src/doc/man/en_us/changelog.xml"
;
dcli_translate_filename
(
fname
,
fname
);
ofstream
fp
(
fname
);
fp
<<
"<?xml version=
\"
1.0
\"
encoding=
\"
iso-latin-1
\"
?>"
<<
endl
<<
"<!DOCTYPE book ["
<<
endl
<<
"<!ENTITY % isopub PUBLIC"
<<
endl
<<
"
\"
ISO 8879:1986//ENTITIES Publishing//EN//XML
\"
"
<<
endl
<<
"
\"
/usr/share/xml/entities/xml-iso-entities-8879.1986/isopub.ent
\"
> <!--
\"
http://www.w3.org/2003/entities/iso8879/isopub.ent
\"
> -->"
<<
endl
<<
"%isopub;"
<<
endl
<<
"]>"
<<
endl
<<
"<article>"
<<
endl
<<
"<title>Proview Changelog</title>"
<<
endl
<<
"<section><title>Changelog entries</title>"
<<
endl
;
#if 0
" <info>" << endl <<
" <subtitle>" << endl <<
" <mediaobject>" << endl <<
" <imageobject>" << endl <<
" <imagedata fileref=\"pwr_logga.gif\" width=\"5in\" depth=\"6in\"/>" << endl <<
" </imageobject>" << endl <<
" </mediaobject>" << endl <<
" </subtitle>" << endl <<
" <subtitle>Changelog</subtitle>" << endl <<
" </info>" << endl;
#endif
sort_time
();
for
(
int
i
=
(
int
)
entries
.
size
()
-
1
;
i
>=
0
;
i
--
)
{
time_AtoAscii
(
&
entries
[
i
].
time
,
time_eFormat_DateAndTime
,
timstr1
,
sizeof
(
timstr1
));
timstr1
[
11
]
=
0
;
fp
<<
"<table xml:id=
\"
changelog_"
<<
i
<<
"
\"
width=
\"
2in
\"
border=
\"
0
\"
><tbody>"
<<
"<tr><td><classname>Module</classname></td><td><classname> "
<<
entries
[
i
].
module
<<
"</classname></td></tr>"
<<
endl
<<
"<tr><td><classname>Component</classname></td><td> "
<<
entries
[
i
].
component
<<
"</td></tr>"
<<
endl
<<
"<tr><td><classname>Signature</classname></td><td> "
<<
entries
[
i
].
signature
<<
"</td></tr>"
<<
endl
<<
"<tr><td><classname>Date</classname></td><td> "
<<
timstr1
<<
"</td></tr>"
<<
endl
<<
"</tbody></table>"
<<
endl
<<
"<para>"
<<
entries
[
i
].
text
<<
"</para>"
<<
endl
;
}
fp
<<
"</section></article>"
<<
endl
;
}
src/exe/co_convert/src/cnv_changelog.h
View file @
9c4b6821
/*
* Proview $Id: cnv_changelog.h,v 1.
1 2006-02-27 06:17
:41 claes Exp $
* Proview $Id: cnv_changelog.h,v 1.
2 2006-05-22 13:31
:41 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -76,6 +76,7 @@ class CnvChangeLog {
int
read
(
char
*
module
);
void
print
();
void
print_docbook
();
void
sort_time
();
void
sort_module
();
void
sort_component
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment