Skip to content

Commit

Permalink
Merge branch 'release/6.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
fletcher committed Apr 10, 2020
2 parents c637ee3 + 7f06206 commit bc52210
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 37 deletions.
30 changes: 18 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ cmake_minimum_required (VERSION 2.6)
set (My_Project_Title "MultiMarkdown")
set (My_Project_Description "Lightweight markup processor to produce HTML, LaTeX, and more.")
set (My_Project_Author "Fletcher T. Penney")
set (My_Project_Revised_Date "2019-12-28")
set (My_Project_Revised_Date "2020-04-10")
set (My_Project_Version_Major 6)
set (My_Project_Version_Minor 5)
set (My_Project_Version_Patch 1)
set (My_Project_Version_Patch 2)

set (My_Project_Version "${My_Project_Version_Major}.${My_Project_Version_Minor}.${My_Project_Version_Patch}")

set (My_Project_Copyright_Date "2016 - 2019")
set (My_Project_Copyright_Date "2016 - 2020")
set (My_Project_Copyright "Copyright © ${My_Project_Copyright_Date} ${My_Project_Author}.")

string(TOUPPER ${My_Project_Title} My_Project_Title_Caps )
Expand Down Expand Up @@ -416,7 +416,7 @@ if (APPLE)
if (DEFINED ZIP)
set (CPACK_GENERATOR ZIP)
else (DEFINED ZIP)
set (CPACK_GENERATOR PackageMaker)
set (CPACK_GENERATOR productbuild)
endif (DEFINED ZIP)

endif (APPLE)
Expand Down Expand Up @@ -532,7 +532,8 @@ ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/token.h)
ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/version.h)

# Create a command-line app?
# if (NOT DEFINED TEST)
if(hasParent)
else()
add_executable(multimarkdown
Sources/libMultiMarkdown/d_string.c
Sources/multimarkdown/main.c
Expand All @@ -541,15 +542,17 @@ ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/version.h)
#
# Link the library to the app?
target_link_libraries(multimarkdown libMultiMarkdown)
# endif()

set_target_properties(multimarkdown PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
set_property(TARGET multimarkdown PROPERTY C_STANDARD 11)
set_property(TARGET multimarkdown PROPERTY C_STANDARD 11)
endif()

# Xcode settings for fat binaries
set_target_properties(libMultiMarkdown PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
set_target_properties(multimarkdown PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")

# Use C11
set_property(TARGET libMultiMarkdown PROPERTY C_STANDARD 11)
set_property(TARGET multimarkdown PROPERTY C_STANDARD 11)


# ==========================
Expand All @@ -568,10 +571,13 @@ set_property(TARGET multimarkdown PROPERTY C_STANDARD 11)
# install (FILES ${public_header_files} DESTINATION local/include/libFoo)

# Install MMD binary
install (TARGETS multimarkdown
DESTINATION bin
COMPONENT application
)
if(hasParent)
else()
install (TARGETS multimarkdown
DESTINATION bin
COMPONENT application
)
endif()
set (CPACK_COMPONENT_APPLICATION_DISPLAY_NAME "MultiMarkdown")
set (CPACK_COMPONENT_APPLICATION_DESCRIPTION "Install the actual `multimarkdown` program.")

Expand Down
Binary file modified DevelopmentNotes/DevelopmentNotes.epub
Binary file not shown.
31 changes: 30 additions & 1 deletion DevelopmentNotes/DevelopmentNotes.fodt
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta>
<dc:title>MultiMarkdown v6 Development Notes</dc:title>
<dc:creator>Fletcher T. Penney</dc:creator>
<meta:user-defined meta:name="date">2019-12-11</meta:user-defined>
<meta:user-defined meta:name="date">2020-04-10</meta:user-defined>
<meta:user-defined meta:name="uuid">dd2d8e76-dc2d-416d-9acd-5395d20871c2</meta:user-defined>
</office:meta>
<office:body>
Expand Down Expand Up @@ -763,6 +763,35 @@ TextBundle/TextPack, OpenDocument, etc.</text:p></text:list-item>
<text:h text:outline-level="3"><text:bookmark text:name="changelog"/>Changelog</text:h>

<text:list text:style-name="L1">
<text:list-item>
<text:p text:style-name="Standard">2020&#8211;04&#8211;10 - v 6.5.2:</text:p>

<text:list text:style-name="L1">
<text:list-item>
<text:p text:style-name="P1">
FIXED: Don&#8217;t use undefined version string</text:p></text:list-item>

<text:list-item>
<text:p text:style-name="P1">
FIXED: Fix memory leak in ITMZ reader</text:p></text:list-item>

<text:list-item>
<text:p text:style-name="P1">
FIXED: Update cpack generator for macOS</text:p></text:list-item>

<text:list-item>
<text:p text:style-name="P1">
Fix fsf address in files licenses.</text:p></text:list-item>

<text:list-item>
<text:p text:style-name="P1">
Merge pull request #184 from LyesSaadi/develop</text:p></text:list-item>

<text:list-item>
<text:p text:style-name="Standard">UPDATED: Adjust cmake to only make library when included from a parent project</text:p></text:list-item>

</text:list></text:list-item>

<text:list-item>
<text:p text:style-name="Standard">2019&#8211;12&#8211;28 - v 6.5.1:</text:p>

Expand Down
12 changes: 11 additions & 1 deletion DevelopmentNotes/DevelopmentNotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<title>MultiMarkdown v6 Development Notes</title>
<meta name="author" content="Fletcher T. Penney"/>
<meta name="date" content="2019-12-11"/>
<meta name="date" content="2020-04-10"/>
<meta name="uuid" content="dd2d8e76-dc2d-416d-9acd-5395d20871c2"/>
</head>
<body>
Expand Down Expand Up @@ -433,6 +433,16 @@ <h3 id="dependencieslibraries">Dependencies/Libraries</h3>
<h3 id="changelog">Changelog</h3>

<ul>
<li><p>2020&#8211;04&#8211;10 - v 6.5.2:</p>

<ul>
<li>FIXED: Don&#8217;t use undefined version string</li>
<li>FIXED: Fix memory leak in ITMZ reader</li>
<li>FIXED: Update cpack generator for macOS</li>
<li>Fix fsf address in files licenses.</li>
<li>Merge pull request #184 from LyesSaadi/develop</li>
<li>UPDATED: Adjust cmake to only make library when included from a parent project</li>
</ul></li>
<li><p>2019&#8211;12&#8211;28 - v 6.5.1:</p>

<ul>
Expand Down
Binary file modified DevelopmentNotes/DevelopmentNotes.pdf
Binary file not shown.
12 changes: 11 additions & 1 deletion DevelopmentNotes/DevelopmentNotes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Title: MultiMarkdown v6 Development Notes
Author: Fletcher T. Penney
Date: 2019-12-11
Date: 2020-04-10
LaTeX Config: tufte-handout
Base Header Level: 3
uuid: dd2d8e76-dc2d-416d-9acd-5395d20871c2
Expand Down Expand Up @@ -472,6 +472,16 @@ TextBundle/TextPack, OpenDocument, etc.

# Changelog #

* 2020-04-10 - v 6.5.2:

* FIXED: Don't use undefined version string
* FIXED: Fix memory leak in ITMZ reader
* FIXED: Update cpack generator for macOS
* Fix fsf address in files licenses.
* Merge pull request #184 from LyesSaadi/develop
* UPDATED: Adjust cmake to only make library when included from a parent project


* 2019-12-28 - v 6.5.1:

* FIXED: Ensure use of bash for creating AllTests.c
Expand Down
Binary file modified QuickStart/QuickStart.epub
Binary file not shown.
4 changes: 2 additions & 2 deletions QuickStart/QuickStart.fodt
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">
<office:meta>
<dc:title>MultiMarkdown v6 Quick Start Guide</dc:title>
<dc:creator>Fletcher T. Penney</dc:creator>
<meta:user-defined meta:name="version">6.4.0</meta:user-defined>
<meta:user-defined meta:name="version">6.5.2</meta:user-defined>
<meta:user-defined meta:name="uuid">0d6313fa-9135-477e-9c14-7d62c1977833</meta:user-defined>
</office:meta>
<office:body>
Expand Down Expand Up @@ -321,7 +321,7 @@ office:mimetype="application/vnd.oasis.opendocument.text">

<text:h text:outline-level="3"><text:bookmark text:name="introduction"/>Introduction</text:h>

<text:p text:style-name="Standard">Version: 6.4.0</text:p>
<text:p text:style-name="Standard">Version: 6.5.2</text:p>

<text:p text:style-name="Standard">This document serves as a description of MultiMarkdown (MMD) v6, as well as a sample document to demonstrate the various features. Specifically, differences from MMD v5 will be pointed out.</text:p>

Expand Down
4 changes: 2 additions & 2 deletions QuickStart/QuickStart.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<title>MultiMarkdown v6 Quick Start Guide</title>
<meta name="author" content="Fletcher T. Penney"/>
<meta name="version" content="6.4.0"/>
<meta name="version" content="6.5.2"/>
<meta name="uuid" content="0d6313fa-9135-477e-9c14-7d62c1977833"/>
</head>
<body>
Expand Down Expand Up @@ -49,7 +49,7 @@

<h3 id="introduction">Introduction</h3>

<p>Version: 6.4.0</p>
<p>Version: 6.5.2</p>

<p>This document serves as a description of MultiMarkdown (<abbr title="MultiMarkdown">MMD</abbr>) v6, as well as a sample document to demonstrate the various features. Specifically, differences from <abbr title="MultiMarkdown">MMD</abbr> v5 will be pointed out.</p>

Expand Down
Binary file modified QuickStart/QuickStart.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion QuickStart/QuickStart.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Title: MultiMarkdown v6 Quick Start Guide
Author: Fletcher T. Penney
Version: 6.4.0
Version: 6.5.2
LaTeX Config: tufte-handout
Base Header Level: 3
uuid: 0d6313fa-9135-477e-9c14-7d62c1977833
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
| ---------- | ------------------------- |
| Title: | MultiMarkdown |
| Author: | Fletcher T. Penney |
| Date: | 2019-12-28 |
| Copyright: | Copyright © 2016 - 2019 Fletcher T. Penney. |
| Version: | 6.5.1 |
| Date: | 2020-04-10 |
| Copyright: | Copyright © 2016 - 2020 Fletcher T. Penney. |
| Version: | 6.5.2 |

master branch: [![Build Status](https://travis-ci.org/fletcher/MultiMarkdown-6.svg?branch=master)](https://travis-ci.org/fletcher/MultiMarkdown-6)
develop branch: [![Build Status](https://travis-ci.org/fletcher/MultiMarkdown-6.svg?branch=develop)](https://travis-ci.org/fletcher/MultiMarkdown-6)
Expand Down
2 changes: 2 additions & 0 deletions Sources/libMultiMarkdown/itmz-reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,7 @@ void mmd_convert_itmz_string(mmd_engine * e, size_t start, size_t len) {
// Now convert mapdata.xml -> MMD text
token * chain = tokenize_itmz_string(e, 0, e->dstr->currentStringLength);
parse_itmz_token_chain(e, chain);
} else {
d_string_free(text, true);
}
}
2 changes: 1 addition & 1 deletion Sources/libMultiMarkdown/mmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3049,7 +3049,7 @@ DString * mmd_engine_convert_itmz_to_text(mmd_engine * e) {

/// Return string containing engine version.
char * mmd_version(void) {
char * result;
char * result = NULL;
#ifndef TEST
result = my_strdup(MULTIMARKDOWN_VERSION);
#endif
Expand Down
27 changes: 18 additions & 9 deletions Sources/libMultiMarkdown/zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,21 @@ mz_bool unzip_archive_to_path(mz_zip_archive * pZip, const char * path) {

// Unzip archive (as plain binary data) to specified file path
mz_bool unzip_data_to_path(const void * data, size_t size, const char * path) {
mz_zip_archive pZip;
memset(&pZip, 0, sizeof(mz_zip_archive));
mz_zip_archive * pZip = malloc(sizeof(mz_zip_archive));
memset(pZip, 0, sizeof(mz_zip_archive));

mz_bool status = mz_zip_reader_init_mem(&pZip, data, size, 0);
mz_bool status = mz_zip_reader_init_mem(pZip, data, size, 0);

if (!status) {
fprintf(stderr, "mz_zip_reader_init_mem() failed.\n");
mz_zip_reader_end(pZip);
return status;
}

return unzip_archive_to_path(&pZip, path);
status = unzip_archive_to_path(pZip, path);
mz_zip_reader_end(pZip);
free(pZip);
return status;
}


Expand Down Expand Up @@ -247,22 +251,27 @@ mz_bool unzip_file_from_archive(mz_zip_archive * pZip, const char * filename, DS

// Extract single file from archive
mz_bool unzip_file_from_data(const void * data, size_t size, const char * filename, DString * destination) {
mz_zip_archive pZip;
memset(&pZip, 0, sizeof(mz_zip_archive));
mz_zip_archive * pZip = malloc(sizeof(mz_zip_archive));
memset(pZip, 0, sizeof(mz_zip_archive));

mz_bool status = mz_zip_reader_init_mem(&pZip, data, size, 0);
mz_bool status = mz_zip_reader_init_mem(pZip, data, size, 0);

if (!status) {
fprintf(stderr, "mz_zip_reader_init_mem() failed.\n");
mz_zip_reader_end(pZip);
return status;
}

status = mz_zip_validate_archive(&pZip, 0);
status = mz_zip_validate_archive(pZip, 0);

if (!status) {
fprintf(stderr, "mz_zip_validate_archive failed.\n");
mz_zip_reader_end(pZip);
return status;
}

return unzip_file_from_archive(&pZip, filename, destination);
status = unzip_file_from_archive(pZip, filename, destination);
mz_zip_reader_end(pZip);
free(pZip);
return status;
}
4 changes: 2 additions & 2 deletions texmf/tex/latex/mmd6/letterhead/mmd-envelope.sty
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the
% Free Software Foundation, Inc.
% 59 Temple Place, Suite 330
% Boston, MA 02111-1307 USA
% 51 Franklin Street, Fifth Floor
% Boston, MA 02110-1301 USA


\ProvidesPackage{mmd-envelope}
Expand Down
4 changes: 2 additions & 2 deletions texmf/tex/latex/mmd6/letterhead/mmd-letterhead.sty
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the
% Free Software Foundation, Inc.
% 59 Temple Place, Suite 330
% Boston, MA 02111-1307 USA
% 51 Franklin Street, Fifth Floor
% Boston, MA 02110-1301 USA


\ProvidesPackage{mmd-letterhead}
Expand Down

0 comments on commit bc52210

Please sign in to comment.