diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-22 10:31:09 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-22 10:31:09 +0000 |
commit | 611e82f79cbf92ee22a4d6803e1eac45eb4469f3 (patch) | |
tree | 66c8b3f92bb49e469c4613ae9b5f1355ffecbb31 /xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm | |
parent | 61f2acc35f7921cc7fc6584cd5e2879b1c2e15a6 (diff) |
dahdi-perl: "allow" hand-editing of generated files
Rework the text added by dahdi_genconf generators to say that you can
hand-edit files. But just don't complain if they get mysteriously
overriden when it is run again :-)
(closes issue #14569)
Reported by: jtodd
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6215 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm')
-rw-r--r-- | xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm b/xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm index 1a796f4..cb6bff0 100644 --- a/xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm +++ b/xpp/perl_modules/Dahdi/Config/Gen/Unicall.pm @@ -32,7 +32,9 @@ sub generate($) { print "Generating $file\n" if $genopts->{verbose}; open(F, ">$file") || die "$0: Failed to open $file: $!\n"; my $old = select F; - printf "; Autogenerated by %s on %s -- do not hand edit\n", $0, scalar(localtime); + printf "; Autogenerated by $0 on %s\n", scalar(localtime); + print "; If you edit this file and execute $0 again,\n"; + print "; your manual changes will be LOST.\n"; print "; This file should be #included in unicall.conf\n\n"; foreach my $span (@spans) { next unless $span->is_digital(); |