diff --git a/ChangeLog b/ChangeLog index b7609d8ac..e4c15a799 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22134,3 +22134,5 @@ 2021-07-31 Fred Gleason * Fixed a bug in 'systemd/daemon-reload.sh' that broke the 'make deb' target. +2021-07-31 Fred Gleason + * Added a warning to files derived by the build system. diff --git a/apis/rivwebcapi/rivwebcapi.pc.in b/apis/rivwebcapi/rivwebcapi.pc.in index 43393ed97..464c85b68 100644 --- a/apis/rivwebcapi/rivwebcapi.pc.in +++ b/apis/rivwebcapi/rivwebcapi.pc.in @@ -1,3 +1,5 @@ +@GENERATED_SCRIPT_FILE_WARNING@ + prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ diff --git a/build_debs.sh.in b/build_debs.sh.in index 8e5bdeca5..9629415b5 100755 --- a/build_debs.sh.in +++ b/build_debs.sh.in @@ -1,5 +1,7 @@ #!/bin/sh +@GENERATED_SCRIPT_FILE_WARNING@ + # build_debs.sh # # Build Debian packages. diff --git a/conf/rd-bin.conf.in b/conf/rd-bin.conf.in index 6e0cc041b..2d80f4b0e 100644 --- a/conf/rd-bin.conf.in +++ b/conf/rd-bin.conf.in @@ -1,8 +1,10 @@ # rd-bin.conf -# + +@GENERATED_SCRIPT_FILE_WARNING@ + # This is the Apache Web Server configuration for Rivendell. # -# (C) Copyright 2007-2020 Fred Gleason +# (C) Copyright 2007-2021 Fred Gleason # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as diff --git a/configure.ac b/configure.ac index 61b8b2afc..f79bd51a8 100644 --- a/configure.ac +++ b/configure.ac @@ -491,6 +491,18 @@ else fi AC_SUBST(RPM_DATESTAMP,`date +%a\ %b\ %d\ %Y`) +# +# Generated File Warnings +# +AC_SUBST_FILE(GENERATED_C_FILE_WARNING) +GENERATED_C_FILE_WARNING=$srcdir/helpers/c_file_warning + +AC_SUBST_FILE(GENERATED_SCRIPT_FILE_WARNING) +GENERATED_SCRIPT_FILE_WARNING=$srcdir/helpers/script_file_warning + +AC_SUBST_FILE(GENERATED_XML_FILE_WARNING) +GENERATED_XML_FILE_WARNING=$srcdir/helpers/xml_file_warning + # # Create icon symlinks for Operations Guide # diff --git a/docs/opsguide/frontspiece.xml.in b/docs/opsguide/frontspiece.xml.in index ac705fd3c..8a5ac47a7 100644 --- a/docs/opsguide/frontspiece.xml.in +++ b/docs/opsguide/frontspiece.xml.in @@ -1,3 +1,5 @@ +@GENERATED_XML_FILE_WARNING@ + Rivendell Radio Automation System Operations and Administration Guide @@ -9,7 +11,7 @@ @VERSION@ - 2003-2020Fred Gleason + 2003-2021Fred Gleason Permission is granted to copy, distribute and/or modify this document diff --git a/helpers/Makefile.am b/helpers/Makefile.am index fd5b672e4..5990e37c8 100644 --- a/helpers/Makefile.am +++ b/helpers/Makefile.am @@ -33,12 +33,15 @@ dist_cwrap_SOURCES = cwrap.cpp cwrap.h dist_jsmin_SOURCES = jsmin.c -EXTRA_DIST = rdi18n_helper.sh.in\ +EXTRA_DIST = c_file_warning\ install_python.sh.in\ + rdi18n_helper.sh.in\ rdpack.sh\ rdtrans.sh\ rdtransgui.sh\ - setenvvar.sh + script_file_warning\ + setenvvar.sh\ + xml_file_warning CLEANFILES = *~\ *.tar.gz\ diff --git a/helpers/c_file_warning b/helpers/c_file_warning new file mode 100644 index 000000000..7b46855ce --- /dev/null +++ b/helpers/c_file_warning @@ -0,0 +1,12 @@ +/* + ************************************************************************** + * WARNING! WARNING! WARNING! * + * * + * The contents of this file are automatically generated by the build * + * system. Do not make any changes directly to this file; such changes * + * will be silently ignored and overwritten! * + * * + * The template whence this file's contents were derived are in a file * + * of the same name with ".in" appended. * + ************************************************************************** +*/ \ No newline at end of file diff --git a/helpers/install_python.sh.in b/helpers/install_python.sh.in index f063376d1..2c6603556 100644 --- a/helpers/install_python.sh.in +++ b/helpers/install_python.sh.in @@ -1,8 +1,10 @@ #!/bin/sh +@GENERATED_SCRIPT_FILE_WARNING@ + # install_python.sh # -# (C) Copyright 2018 Fred Gleason +# (C) Copyright 2018-2021 Fred Gleason # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as diff --git a/helpers/rdi18n_helper.sh.in b/helpers/rdi18n_helper.sh.in index 7947414c3..84d82e42f 100644 --- a/helpers/rdi18n_helper.sh.in +++ b/helpers/rdi18n_helper.sh.in @@ -1,5 +1,7 @@ #!/bin/bash +@GENERATED_SCRIPT_FILE_WARNING@ + # rdi18n_helper.sh # # Helper script for managing internationalization files for Rivendell diff --git a/helpers/script_file_warning b/helpers/script_file_warning new file mode 100644 index 000000000..41809c978 --- /dev/null +++ b/helpers/script_file_warning @@ -0,0 +1,10 @@ +############################################################################ +# WARNING! WARNING! WARNING! # +# # +# The contents of this file are automatically generated by the build # +# system. Do not make any changes directly to this file; such changes # +# will be silently ignored and overwritten! # +# # +# The template whence this file's contents were derived are in a file # +# of the same name with ".in" appended. # +############################################################################ \ No newline at end of file diff --git a/helpers/xml_file_warning b/helpers/xml_file_warning new file mode 100644 index 000000000..3ceca6925 --- /dev/null +++ b/helpers/xml_file_warning @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/lib/rdpaths.h.in b/lib/rdpaths.h.in index cb7ab5232..3b55e56e3 100644 --- a/lib/rdpaths.h.in +++ b/lib/rdpaths.h.in @@ -1,5 +1,7 @@ // rdpaths.h -// + +@GENERATED_C_FILE_WARNING@ + // Install-Dependent Path Values for Rivendell // // (C) Copyright 2008-2021 Fred Gleason diff --git a/rivendell.spec.in b/rivendell.spec.in index 05d6a460d..facae8d90 100644 --- a/rivendell.spec.in +++ b/rivendell.spec.in @@ -1,5 +1,7 @@ ## rivendell.spec.in -## + +@GENERATED_SCRIPT_FILE_WARNING@ + ## The Rivendell Radio Automation System ## Copyright (C) 2002-2021 Fred Gleason ## diff --git a/systemd/rivendell.service.in b/systemd/rivendell.service.in index 38cc131ad..9b528f885 100644 --- a/systemd/rivendell.service.in +++ b/systemd/rivendell.service.in @@ -1,3 +1,5 @@ +@GENERATED_SCRIPT_FILE_WARNING@ + [Unit] Description=Rivendell Radio Automation System After=network.target remote-fs.target nss-lookup.target diff --git a/xdg/install_usermode.sh.in b/xdg/install_usermode.sh.in index 1132d5dd0..4ec0bf089 100755 --- a/xdg/install_usermode.sh.in +++ b/xdg/install_usermode.sh.in @@ -1,5 +1,7 @@ #!/bin/sh +@GENERATED_SCRIPT_FILE_WARNING@ + # install_usermode.sh # # Install support files for usermode wrapper diff --git a/xdg/rdalsaconfig-root-consolehelper.in b/xdg/rdalsaconfig-root-consolehelper.in index 1bdf6fd13..0cdae6f0b 100644 --- a/xdg/rdalsaconfig-root-consolehelper.in +++ b/xdg/rdalsaconfig-root-consolehelper.in @@ -1,3 +1,5 @@ +@GENERATED_SCRIPT_FILE_WARNING@ + USER=root PROGRAM=@prefix@/bin/rdalsaconfig SESSION=true diff --git a/xdg/rddbconfig-root-consolehelper.in b/xdg/rddbconfig-root-consolehelper.in index 30bba849b..a3d9650f0 100644 --- a/xdg/rddbconfig-root-consolehelper.in +++ b/xdg/rddbconfig-root-consolehelper.in @@ -1,3 +1,5 @@ +@GENERATED_SCRIPT_FILE_WARNING@ + USER=root PROGRAM=@prefix@/bin/rddbconfig SESSION=true