gnucash maint: Include the contents of PROJECT_DESCRIPTION in the PACKAGE_PREFIX.

John Ralls jralls at code.gnucash.org
Sun Mar 14 17:50:53 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/d7a4d475 (commit)
	from  https://github.com/Gnucash/gnucash/commit/87474d8a (commit)



commit d7a4d475433a912767b47449e86261a2553488e0
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Mar 14 14:47:22 2021 -0700

    Include the contents of PROJECT_DESCRIPTION in the PACKAGE_PREFIX.
    
    If it's defined. PACKAGE_PREFIX is used to name tarballs and set their
    base directory. The translation project has requested that we name
    freeze-string traballs with a pre1 suffix; this makes that possible.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5f272b427..03b955e7d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -818,6 +818,9 @@ dist_add_generated (${BUILDING_FROM_VCS} ChangeLog)
 ############################ BEGIN MAKE DIST #################
 
 set(PACKAGE_PREFIX "${PROJECT_NAME}-${PROJECT_VERSION}")
+if (PROJECT_DESCRIPTION)
+  string(APPEND PACKAGE_PREFIX "-${PROJECT_DESCRIPTION}")
+endif()
 set(DIST_FILE "${PACKAGE_PREFIX}.tar")
 
 set(toplvl_DIST_local ${gnucash_DOCS}



Summary of changes:
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)



More information about the gnucash-changes mailing list