Skip to content

Commit

Permalink
- Updated copyright headers into the New Year (2024).
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Jan 2, 2024
1 parent 08cfb1b commit 8e886c1
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 51 deletions.
30 changes: 11 additions & 19 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
cmake_minimum_required (VERSION 3.15)

project (synthv1
VERSION 0.9.33
VERSION 0.9.34
DESCRIPTION "an old-school polyphonic synthesizer"
HOMEPAGE_URL "https://synthv1.sourceforge.io"
LANGUAGES C CXX)

set (CONFIG_VERSION ${PROJECT_VERSION})
execute_process (
COMMAND git describe --tags --dirty --abbrev=6
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT
RESULT_VARIABLE GIT_DESCRIBE_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (GIT_DESCRIBE_RESULT EQUAL 0)
set (VERSION "${GIT_DESCRIBE_OUTPUT}")
string (REGEX REPLACE "^[^0-9]+" "" VERSION "${VERSION}")
string (REGEX REPLACE "^1_" "" VERSION "${VERSION}")
string (REGEX REPLACE "^[_vV]+" "" VERSION "${VERSION}")
string (REGEX REPLACE "-g" "git." VERSION "${VERSION}")
string (REGEX REPLACE "[_|-]" "." VERSION "${VERSION}")
set (GIT_VERSION "${GIT_DESCRIBE_OUTPUT}")
string (REGEX REPLACE "^[^0-9]+" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "^1_" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "^[_vV]+" "" GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "-g" "git." GIT_VERSION "${GIT_VERSION}")
string (REGEX REPLACE "[_|-]" "." GIT_VERSION "${GIT_VERSION}")
execute_process (
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_REVPARSE_OUTPUT
RESULT_VARIABLE GIT_REVPARSE_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "master")
set (VERSION "${VERSION} [${GIT_REVPARSE_OUTPUT}]")
if (GIT_REVPARSE_RESULT EQUAL 0 AND NOT GIT_REVPARSE_OUTPUT STREQUAL "main")
set (GIT_VERSION "${GIT_VERSION} [${GIT_REVPARSE_OUTPUT}]")
endif ()
else ()
set (VERSION "${PROJECT_VERSION}")
set (PROJECT_VERSION "${GIT_VERSION}")
endif ()

set (PACKAGE_NAME "synthv1")
set (PACKAGE_VERSION "${VERSION}")
set (PACKAGE_BUGREPORT "rncbc@rncbc.org")
set (PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set (PACKAGE_TARNAME "synthv1")

set (CONFIG_BUILD_VERSION "${PACKAGE_VERSION}")

if (CMAKE_BUILD_TYPE MATCHES "Debug")
set (CONFIG_DEBUG 1)
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ synthv1 - an old-school polyphonic synthesizer
ChangeLog


GIT HEAD

- Updated copyright headers into the New Year (2024).


0.9.33 2023-12-20 An End-of-Autumn'23 Release.

- Minor optimization to denormal avoidance on some fx's.
Expand Down
4 changes: 2 additions & 2 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Upstream-Contact: Rui Nuno Capela <rncbc@rncbc.org>
Source: https://synthv1.sourceforge.io

Files: *
Copyright: 2012-2023 Rui Nuno Capela <rncbc@rncbc.org>
Copyright: 2012-2024 Rui Nuno Capela <rncbc@rncbc.org>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -20,7 +20,7 @@ License: GPL-2+
License can be found in /usr/share/common-licenses/GPL-2.

Files: src/appdata/*
Copyright: 2012-2023 Rui Nuno Capela <rncbc@rncbc.org>
Copyright: 2012-2024 Rui Nuno Capela <rncbc@rncbc.org>
License: FSFAP
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
Expand Down
2 changes: 1 addition & 1 deletion rpm/synthv1.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package synthv1
#
# Copyright (C) 2012-2023, rncbc aka Rui Nuno Capela. All rights reserved.
# Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand Down
2 changes: 1 addition & 1 deletion src/appdata/org.rncbc.synthv1.metainfo.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2012-2023 Rui Nuno Capela <rncbc@rncbc.org> -->
<!-- Copyright 2012-2024 Rui Nuno Capela <rncbc@rncbc.org> -->
<component type="desktop">
<id>org.rncbc.synthv1</id>
<metadata_license>FSFAP</metadata_license>
Expand Down
23 changes: 7 additions & 16 deletions src/config.h.cmake
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
#ifndef CONFIG_H
#define CONFIG_H

/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"

/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the name of this package. */
#cmakedefine PROJECT_NAME "@PROJECT_NAME@"

/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"

/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"

/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"

/* Define to the version of this package. */
#cmakedefine CONFIG_VERSION "@CONFIG_VERSION@"
/* Define to the description of this package. */
#cmakedefine PROJECT_DESCRIPTION "@PROJECT_DESCRIPTION@"

/* Define to the build version of this package. */
#cmakedefine CONFIG_BUILD_VERSION "@CONFIG_BUILD_VERSION@"
/* Define to the homepage of this package. */
#cmakedefine PROJECT_HOMEPAGE_URL "@PROJECT_HOMEPAGE_URL@"

/* Default installation prefix. */
#cmakedefine CONFIG_PREFIX "@CONFIG_PREFIX@"
Expand Down
2 changes: 1 addition & 1 deletion src/synthv1.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1.cpp
//
/****************************************************************************
Copyright (C) 2012-2022, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/synthv1.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1.h
//
/****************************************************************************
Copyright (C) 2012-2022, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
4 changes: 2 additions & 2 deletions src/synthv1_config.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1_config.cpp
//
/****************************************************************************
Copyright (C) 2012-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -350,7 +350,7 @@ void synthv1_config::load (void)
void synthv1_config::save (void)
{
QSettings::beginGroup("/Program");
QSettings::setValue("/Version", CONFIG_BUILD_VERSION);
QSettings::setValue("/Version", PROJECT_VERSION);
QSettings::endGroup();

QSettings::beginGroup("/Default");
Expand Down
10 changes: 5 additions & 5 deletions src/synthv1_config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1_config.h
//
/****************************************************************************
Copyright (C) 2012-2023, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand All @@ -24,12 +24,12 @@

#include "config.h"

#define SYNTHV1_TITLE PACKAGE_NAME
#define SYNTHV1_TITLE PROJECT_NAME

#define SYNTHV1_SUBTITLE "an old-school polyphonic synthesizer."
#define SYNTHV1_WEBSITE "https://synthv1.sourceforge.io"
#define SYNTHV1_COPYRIGHT "Copyright (C) 2012-2023, rncbc aka Rui Nuno Capela. All rights reserved."
#define SYNTHV1_SUBTITLE PROJECT_DESCRIPTION
#define SYNTHV1_WEBSITE PROJECT_HOMEPAGE_URL

#define SYNTHV1_COPYRIGHT "Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved."
#define SYNTHV1_DOMAIN "rncbc.org"


Expand Down
4 changes: 2 additions & 2 deletions src/synthv1_param.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1_param.cpp
//
/****************************************************************************
Copyright (C) 2012-2021, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -379,7 +379,7 @@ bool synthv1_param::savePreset (
QDomDocument doc(SYNTHV1_TITLE);
QDomElement ePreset = doc.createElement("preset");
ePreset.setAttribute("name", fi.completeBaseName());
ePreset.setAttribute("version", CONFIG_BUILD_VERSION);
ePreset.setAttribute("version", PROJECT_VERSION);

QDomElement eParams = doc.createElement("params");
for (uint32_t i = 0; i < synthv1::NUM_PARAMS; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion src/synthv1_param.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// synthv1_param.h
//
/****************************************************************************
Copyright (C) 2012-2021, rncbc aka Rui Nuno Capela. All rights reserved.
Copyright (C) 2012-2024, rncbc aka Rui Nuno Capela. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down

0 comments on commit 8e886c1

Please sign in to comment.