diff --git a/bootstrap.sh b/bootstrap.sh index fafd381..fb14847 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -112,6 +112,7 @@ GENERATED FILES * build-resource-file.sh - build resource.qrc file from a resource directory * sql-to-dot.sed - script to convert SQL schema files to graphviz dot in doxygen * mac-create-app-bundle.sh - script to create apple mac os-x app-bundle + * test/runtests.sh - template file to run test scripts, i.e. docker based * AUTHORS - replace your name in AUTHORS before first run * NEWS - empty file add your project's news * README - add project description (first line is header, followed by an empty line) @@ -197,7 +198,7 @@ FILES + + tokentool_de.qm + tokentool_fr.qm + tokentool_it.qm + tokentool_en.qm + + diff --git a/src/languages.qrc.in b/src/languages.qrc.in deleted file mode 100644 index 57f0a61..0000000 --- a/src/languages.qrc.in +++ /dev/null @@ -1,8 +0,0 @@ - - - @PACKAGENAME@_de.qm - @PACKAGENAME@_fr.qm - @PACKAGENAME@_it.qm - @PACKAGENAME@_en.qm - - diff --git a/src/makefile.am b/src/makefile.am index 526be27..1a7e3d3 100644 --- a/src/makefile.am +++ b/src/makefile.am @@ -55,14 +55,17 @@ tokentool_TR_FILES = main.cxx version.cxx tokentool_SOURCES = ${tokentool_TR_FILES} ${BUILT_SOURCES} ## automatic assembly, no need to change -BUILT_SOURCES = ${tokentool_MOCFILES} ${tokentool_UIFILES} ${tokentool_TRANSLATIONS} ${tokentool_RESOURCES} +BUILT_SOURCES = ${tokentool_MOCFILES} ${tokentool_UIFILES} \ + ${tokentool_TRANSLATIONS} ${tokentool_RESOURCES} ## automatic assembly, no need to change -EXTRA_DIST_TR = ${tokentool_MOCFILES:moc_%.cxx=%.hxx} ${tokentool_UIFILES:ui_%.hxx=%.ui} +EXTRA_DIST_TR = ${tokentool_MOCFILES:moc_%.cxx=%.hxx} \ + ${tokentool_UIFILES:ui_%.hxx=%.ui} ## automatic assembly, no need to change ## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt -EXTRA_DIST = ${EXTRA_DIST_TR} ${tokentool_RESOURCES:qrc_%.cxx:%.qrc} ${tokentool_TRANSLATIONS:%.qm=%.ts} qt_de.qm qt_fr.qm +EXTRA_DIST = ${EXTRA_DIST_TR} ${tokentool_RESOURCES:qrc_%.cxx:%.qrc} \ + ${tokentool_TRANSLATIONS:%.qm=%.ts} qt_de.qm qt_fr.qm ## automatic assembly, no need to change LANGUAGE_FILES = ${EXTRA_DIST_TR} ${tokentool_TR_FILES} diff --git a/src/tokentool.hxx b/src/tokentool.hxx index fbf7e44..3c7af69 100644 --- a/src/tokentool.hxx +++ b/src/tokentool.hxx @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/version.cxx b/src/version.cxx new file mode 100644 index 0000000..c87b294 --- /dev/null +++ b/src/version.cxx @@ -0,0 +1,40 @@ +/*! @file + + @id $ +*/ +// 1 2 3 4 5 6 7 8 +// 45678901234567890123456789012345678901234567890123456789012345678901234567890 + +#include + +namespace NAMESPACE { + std::string package_string() { + return PACKAGE_STRING; + } + std::string package_name() { + return PACKAGE_NAME; + } + std::string version() { + return PACKAGE_VERSION; + } + std::string build_date() { + return BUILD_DATE; + } + std::string author() { + return AUTHOR; + } + std::string description() { + return DESCRIPTION; + } + std::string readme() { + return README; + } + std::string logo() { + return PROJECT_LOGO; + } + std::string icon() { + return PROJECT_ICON; + } + const std::string WHAT("#(@) " PACKAGE_STRING); + const std::string IDENT("$Id: " PACKAGE_STRING); +}