From 8d182fd5049737df9d28a6a81e9998661787e7c5 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 31 Jul 2021 13:26:54 -0400 Subject: [PATCH] 2021-07-31 Fred Gleason * Added a warning to files derived by the build system. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ apis/rivwebcapi/rivwebcapi.pc.in | 2 ++ build_debs.sh.in | 2 ++ conf/rd-bin.conf.in | 6 ++++-- configure.ac | 12 ++++++++++++ docs/opsguide/frontspiece.xml.in | 4 +++- helpers/Makefile.am | 7 +++++-- helpers/c_file_warning | 12 ++++++++++++ helpers/install_python.sh.in | 4 +++- helpers/rdi18n_helper.sh.in | 2 ++ helpers/script_file_warning | 10 ++++++++++ helpers/xml_file_warning | 12 ++++++++++++ lib/rdpaths.h.in | 4 +++- rivendell.spec.in | 4 +++- systemd/rivendell.service.in | 2 ++ xdg/install_usermode.sh.in | 2 ++ xdg/rdalsaconfig-root-consolehelper.in | 2 ++ xdg/rddbconfig-root-consolehelper.in | 2 ++ 18 files changed, 83 insertions(+), 8 deletions(-) create mode 100644 helpers/c_file_warning create mode 100644 helpers/script_file_warning create mode 100644 helpers/xml_file_warning diff --git a/ChangeLog b/ChangeLog index b7609d8a..e4c15a79 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 43393ed9..464c85b6 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 8e5bdeca..9629415b 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 6e0cc041..2d80f4b0 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 61b8b2af..f79bd51a 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 ac705fd3..8a5ac47a 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 fd5b672e..5990e37c 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 00000000..7b46855c --- /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 f063376d..2c660355 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 7947414c..84d82e42 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 00000000..41809c97 --- /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 00000000..3ceca692 --- /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 cb7ab523..3b55e56e 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 05d6a460..facae8d9 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 38cc131a..9b528f88 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 1132d5dd..4ec0bf08 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 1bdf6fd1..0cdae6f0 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 30bba849..a3d9650f 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