[tools] Add overwrite warning to created .spec file

John J. McDonough jjmcd at fedoraproject.org
Tue May 10 00:22:53 UTC 2011


commit 2a62a6876887df0f9bf09e99c708a5839770494f
Author: John J. McDonough <jjmcd at fedoraproject.org>
Date:   Mon May 9 20:22:32 2011 -0400

    Add overwrite warning to created .spec file

 tools/doc-publican-rpm/makeSpecFile.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tools/doc-publican-rpm/makeSpecFile.c b/tools/doc-publican-rpm/makeSpecFile.c
index 6f940bd..8b869da 100644
--- a/tools/doc-publican-rpm/makeSpecFile.c
+++ b/tools/doc-publican-rpm/makeSpecFile.c
@@ -449,6 +449,10 @@ void makeSpecFile( void )
   //  fprintf(f,"%%{_datadir}/icons/hicolor/scalable/apps/fedora-documentation.svg\n");
 
   fprintf(f,"\n");
+  fprintf(f,"# CAUTION: This file was created by doc-publican-rpm.  Changes made\n");
+  fprintf(f,"# to this file, other than the changelog and the description, will\n");
+  fprintf(f,"# be overwritten.  Make permanent changes to the docs/tools.git repo\n");
+  fprintf(f,"\n");
   fprintf(f,"%%changelog\n");
   if ( !getChangelog( szSpecName, f ) )
     {


More information about the docs-commits mailing list