diff --git a/CMakeLists.txt b/CMakeLists.txt index 02fc06768..30c75a2a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ cmake_minimum_required(VERSION 3.9.0) # Global variables describing the project. string(TIMESTAMP YEAR "%Y") +string(TIMESTAMP DATE "%Y-%m-%d") set(APP_NAME "RSS Guard") set(APP_EMAIL "rotter.martinos@gmail.com") diff --git a/resources/desktop/rssguard.metainfo.xml.in b/resources/desktop/rssguard.metainfo.xml.in index ee4b6c709..c4a115754 100644 --- a/resources/desktop/rssguard.metainfo.xml.in +++ b/resources/desktop/rssguard.metainfo.xml.in @@ -1,5 +1,5 @@ - + @APP_REVERSE_NAME@ CC0-1.0 @@ -60,7 +60,7 @@ - + @APP_LOW_NAME@ diff --git a/resources/scripts/hooks/pre-commit b/resources/scripts/hooks/pre-commit deleted file mode 100755 index 255964435..000000000 --- a/resources/scripts/hooks/pre-commit +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -changelog_file="resources/text/CHANGELOG" -datestring="$(date +%F)" -versionstring="$(head -n 1 "$changelog_file")" - -for appdata_file in resources/desktop/*.metainfo.xml.in; do - appdata_file_n="${appdata_file}.n" - - # Set version and date. - cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n" - mv "$appdata_file_n" "$appdata_file" - - git add "$appdata_file" -done - -exit 0 \ No newline at end of file