From: jake%acutex.net <> Date: Sat, 20 Oct 2001 06:49:37 +0000 (+0000) Subject: Bug 73180 - We now put a notice at the top of the versioncache file saying that it... X-Git-Tag: bugzilla-2.14.1~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94a744b16e01bf0d4a168e3d5eebeeb1c43a5fc6;p=thirdparty%2Fbugzilla.git Bug 73180 - We now put a notice at the top of the versioncache file saying that it should not be edited. Patch by Matthew Tuck r= gerv@mozilla.org, jake@acutex.net --- diff --git a/globals.pl b/globals.pl index 1228d02c85..834c08d1cc 100644 --- a/globals.pl +++ b/globals.pl @@ -528,6 +528,13 @@ sub GenerateVersionTable { my $tmpname = "data/versioncache.$$"; open(FID, ">$tmpname") || die "Can't create $tmpname"; + print FID "#\n"; + print FID "# DO NOT EDIT!\n"; + print FID "# This file is automatically generated at least once every\n"; + print FID "# hour by the GenerateVersionTable() sub in globals.pl.\n"; + print FID "# Any changes you make will be overwritten.\n"; + print FID "#\n"; + print FID GenerateCode('@::log_columns'); print FID GenerateCode('%::versions');