Skip to content
Snippets Groups Projects
Commit bdc9ea20 authored by Shawn O. Pearce's avatar Shawn O. Pearce
Browse files

git-gui: Make the copyright notice serve double duty.


The copyright notice we display in the about dialog should be the same
as the one at the top of our source code.  By putting the copyright
notice that appears at the top of our source code into a global variable
rather than a comment we can trivially make them the same at all times.

Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent 0c8d7839
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,15 @@ ...@@ -2,10 +2,15 @@
# Tcl ignores the next line -*- tcl -*- \ # Tcl ignores the next line -*- tcl -*- \
exec wish "$0" -- "$@" exec wish "$0" -- "$@"
# Copyright (C) 2006 Shawn Pearce, Paul Mackerras. All rights reserved. set copyright {
# This program is free software; it may be used, copied, modified Copyright 2006 Shawn Pearce, Paul Mackerras.
# and distributed under the terms of the GNU General Public Licence,
# either version 2, or (at your option) any later version. All rights reserved.
This program is free software; it may be used, copied, modified
and distributed under the terms of the GNU General Public Licence,
either version 2, or (at your option) any later version.
}
set appname [lindex [file split $argv0] end] set appname [lindex [file split $argv0] end]
set gitdir {} set gitdir {}
...@@ -2160,7 +2165,7 @@ proc do_commit {} { ...@@ -2160,7 +2165,7 @@ proc do_commit {} {
} }
proc do_about {} { proc do_about {} {
global appname global appname copyright
set w .about_dialog set w .about_dialog
toplevel $w toplevel $w
...@@ -2179,11 +2184,7 @@ proc do_about {} { ...@@ -2179,11 +2184,7 @@ proc do_about {} {
label $w.desc \ label $w.desc \
-text "$appname - a commit creation tool for Git. -text "$appname - a commit creation tool for Git.
$copyright" \
Copyright 2006 Shawn Pearce, Paul Mackerras
Use and redistribute under the terms of the
GNU General Public License, v. 2.0 or later." \
-padx 5 -pady 5 \ -padx 5 -pady 5 \
-justify left \ -justify left \
-anchor w \ -anchor w \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment