Merge branch 'master' of github.com:jimevins/glabels-qt

This commit is contained in:
Jim Evins
2019-05-12 17:35:23 -04:00
13 changed files with 56 additions and 11 deletions
+1
View File
@@ -27,6 +27,7 @@ install:
- set PATH=%PATH%;%QTDIR%/bin - set PATH=%PATH%;%QTDIR%/bin
build_script: build_script:
- git checkout master # re-attach to master to satisfy auto version tooling
- mkdir build - mkdir build
- cd build - cd build
- cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=%QTDIR% .. - cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH=%QTDIR% ..
+2
View File
@@ -13,6 +13,8 @@ install:
- source /opt/qt5*/bin/qt5*-env.sh - source /opt/qt5*/bin/qt5*-env.sh
script: script:
- git fetch --unshallow # restore repository depth to properly count commits in auto versioning
- git checkout master # re-attach to master to satisfy auto versioning
- mkdir build - mkdir build
- cd build - cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr - cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+1
View File
@@ -0,0 +1 @@
@VERSION_STRING@
+27 -2
View File
@@ -17,6 +17,26 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/"
set (WEBSITE "glabels.org") set (WEBSITE "glabels.org")
set (BUG_WEBSITE "https://github.com/jimevins/glabels-qt/issues") set (BUG_WEBSITE "https://github.com/jimevins/glabels-qt/issues")
execute_process(
COMMAND git symbolic-ref --short HEAD
RESULT_VARIABLE BRANCH_VALID
OUTPUT_VARIABLE BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (NOT ${BRANCH_VALID} STREQUAL "0")
set (BRANCH "Unkonwn")
endif ()
execute_process(
COMMAND git rev-list --count ${BRANCH}
RESULT_VARIABLE COMMIT_COUNT_VALID
OUTPUT_VARIABLE COMMIT_COUNT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (NOT ${COMMIT_COUNT_VALID} STREQUAL "0")
set (COMMIT_COUNT "?")
endif ()
execute_process( execute_process(
COMMAND git log -1 --format=%h COMMAND git log -1 --format=%h
RESULT_VARIABLE COMMIT_HASH_VALID RESULT_VARIABLE COMMIT_HASH_VALID
@@ -38,11 +58,16 @@ if (NOT ${COMMIT_DATE_VALID} STREQUAL "0")
endif () endif ()
# Uncomment for snapshots, comment for releases # Uncomment for snapshots, comment for releases
set(VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}-snapshot (${COMMIT_HASH} ${COMMIT_DATE})") set(VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}-${BRANCH}${COMMIT_COUNT}")
# Uncomment for releases, comment for snapshots # Uncomment for releases, comment for snapshots
#set(VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") #set(VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
set(LONG_VERSION_STRING "${VERSION_STRING} (${COMMIT_HASH} ${COMMIT_DATE})")
# Auto-generate version file
configure_file (.version.in VERSION @ONLY)
#======================================= #=======================================
# Packaging Information # Packaging Information
@@ -147,7 +172,7 @@ add_subdirectory (data)
#======================================= #=======================================
message (STATUS "") message (STATUS "")
message (STATUS "Project name ............ " ${CMAKE_PROJECT_NAME}) message (STATUS "Project name ............ " ${CMAKE_PROJECT_NAME})
message (STATUS "Project version ......... " ${VERSION_STRING}) message (STATUS "Project version ......... " ${LONG_VERSION_STRING})
message (STATUS "Installation prefix ..... " ${CMAKE_INSTALL_PREFIX}) message (STATUS "Installation prefix ..... " ${CMAKE_INSTALL_PREFIX})
message (STATUS "Source code location .... " ${glabels_SOURCE_DIR}) message (STATUS "Source code location .... " ${glabels_SOURCE_DIR})
message (STATUS "CMake version ........... " ${CMAKE_VERSION}) message (STATUS "CMake version ........... " ${CMAKE_VERSION})
+1 -1
View File
@@ -60,7 +60,7 @@ int main( int argc, char **argv )
QCoreApplication::setOrganizationName( "glabels.org" ); QCoreApplication::setOrganizationName( "glabels.org" );
QCoreApplication::setOrganizationDomain( "glabels.org" ); QCoreApplication::setOrganizationDomain( "glabels.org" );
QCoreApplication::setApplicationName( "glabels-batch-qt" ); QCoreApplication::setApplicationName( "glabels-batch-qt" );
QCoreApplication::setApplicationVersion( glabels::model::Version::STRING ); QCoreApplication::setApplicationVersion( glabels::model::Version::LONG_STRING );
// //
// Setup translators // Setup translators
+1 -1
View File
@@ -38,7 +38,7 @@ namespace glabels
{ {
setupUi( this ); setupUi( this );
QString version = tr("Version") + " " + model::Version::STRING; QString version = tr("Version") + " " + model::Version::LONG_STRING;
QString description = tr("A program to create labels and business cards."); QString description = tr("A program to create labels and business cards.");
+1 -1
View File
@@ -45,7 +45,7 @@ int main( int argc, char **argv )
QCoreApplication::setOrganizationName( "glabels.org" ); QCoreApplication::setOrganizationName( "glabels.org" );
QCoreApplication::setOrganizationDomain( "glabels.org" ); QCoreApplication::setOrganizationDomain( "glabels.org" );
QCoreApplication::setApplicationName( "glabels-qt" ); QCoreApplication::setApplicationName( "glabels-qt" );
QCoreApplication::setApplicationVersion( glabels::model::Version::STRING ); QCoreApplication::setApplicationVersion( glabels::model::Version::LONG_STRING );
// //
// Setup translators // Setup translators
+1
View File
@@ -37,6 +37,7 @@ namespace glabels
const int MICRO = @glabels-qt_VERSION_PATCH@; const int MICRO = @glabels-qt_VERSION_PATCH@;
const QString STRING = "@VERSION_STRING@"; const QString STRING = "@VERSION_STRING@";
const QString LONG_STRING = "@LONG_VERSION_STRING@";
} }
} }
+5 -2
View File
@@ -1,8 +1,8 @@
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "GLABELS-BATCH-QT" "1" "Dec 29, 2018" "" "gLabels" .TH "GLABELS-BATCH-QT" "1" "May 05, 2019" "" "gLabels"
.SH NAME .SH NAME
glabels-batch-qt \- gLabels Documentation glabels-batch-qt \- batch creation of labels and business cards
. .
.nr rst2man-indent-level 0 .nr rst2man-indent-level 0
. .
@@ -108,6 +108,9 @@ templates here!\fP
.B ${HOME}/.glabels/ .B ${HOME}/.glabels/
Directory for manually created product templates. Directory for manually created product templates.
.UNINDENT .UNINDENT
.SH BUGS
.sp
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<\fI\%https://github.com/jimevins/glabels\-qt/issues\fP>). You will need a GitHub account to submit new issues or to comment on existing issues.
.SH SEE ALSO .SH SEE ALSO
.sp .sp
\fBglabels\-qt(1)\fP \fBglabels\-qt(1)\fP
+5 -2
View File
@@ -1,8 +1,8 @@
.\" Man page generated from reStructuredText. .\" Man page generated from reStructuredText.
. .
.TH "GLABELS-QT" "1" "Dec 29, 2018" "" "gLabels" .TH "GLABELS-QT" "1" "May 05, 2019" "" "gLabels"
.SH NAME .SH NAME
glabels-qt \- gLabels Documentation glabels-qt \- create labels and business cards
. .
.nr rst2man-indent-level 0 .nr rst2man-indent-level 0
. .
@@ -67,6 +67,9 @@ templates here!\fP
.B ${HOME}/.glabels/ .B ${HOME}/.glabels/
Directory for manually created product templates. Directory for manually created product templates.
.UNINDENT .UNINDENT
.SH BUGS
.sp
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<\fI\%https://github.com/jimevins/glabels\-qt/issues\fP>). You will need a GitHub account to submit new issues or to comment on existing issues.
.SH SEE ALSO .SH SEE ALSO
.sp .sp
\fBglabels\-batch\-qt(1)\fP \fBglabels\-batch\-qt(1)\fP
+2 -2
View File
@@ -149,8 +149,8 @@ latex_documents = [
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('man/glabels-qt', 'glabels-qt', 'gLabels Documentation', [author], 1), ('man/glabels-qt', 'glabels-qt', 'create labels and business cards', [author], 1),
('man/glabels-batch-qt', 'glabels-batch-qt', 'gLabels Documentation', [author], 1) ('man/glabels-batch-qt', 'glabels-batch-qt', 'batch creation of labels and business cards', [author], 1)
] ]
+4
View File
@@ -79,6 +79,10 @@ FILES
Directory for manually created product templates. Directory for manually created product templates.
BUGS
----
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<https://github.com/jimevins/glabels-qt/issues>). You will need a GitHub account to submit new issues or to comment on existing issues.
SEE ALSO SEE ALSO
-------- --------
+5
View File
@@ -43,6 +43,11 @@ FILES
Directory for manually created product templates. Directory for manually created product templates.
BUGS
----
Bugs and feature requests can be reported via the gLabels issue tracking system at GitHub (<https://github.com/jimevins/glabels-qt/issues>). You will need a GitHub account to submit new issues or to comment on existing issues.
SEE ALSO SEE ALSO
-------- --------