Skip to content

Commit 22faa03

Browse files
committed
Merge branch 'maint'
* maint: Revert "Make the installation target of git-gui a little less chatty" git-gui: Verify Tcl/Tk is new enough for our needs git-gui: Attach font_ui to all spinbox widgets
2 parents f7e1d2d + cb8773d commit 22faa03

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

Makefile

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ all::
22

33
# Define V=1 to have a more verbose compile.
44
#
5-
QUIET =
6-
QUIET_MSG = :
7-
ifndef V
8-
QUIET = @
9-
QUIET_MSG = echo ' '
10-
endif
115

126
GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
137
@$(SHELL_PATH) ./GIT-VERSION-GEN
@@ -115,14 +109,12 @@ GIT-GUI-VARS: .FORCE-GIT-GUI-VARS
115109
all:: $(ALL_PROGRAMS) lib/tclIndex
116110

117111
install: all
118-
$(QUIET)$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
119-
$(QUIET)$(QUIET_MSG)INSTALL git-gui; $(INSTALL) git-gui '$(DESTDIR_SQ)$(gitexecdir_SQ)'
120-
$(QUIET)$(foreach p,$(GITGUI_BUILT_INS),$(QUIET_MSG)INSTALL $p;\
121-
rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && \
122-
ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
123-
$(QUIET)$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(libdir_SQ)'
124-
$(QUIET)$(foreach p,lib/tclIndex $(ALL_LIBFILES), $(QUIET_MSG)INSTALL $p;\
125-
$(INSTALL) -m644 $p '$(DESTDIR_SQ)$(libdir_SQ)' ;)
112+
$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
113+
$(INSTALL) git-gui '$(DESTDIR_SQ)$(gitexecdir_SQ)'
114+
$(foreach p,$(GITGUI_BUILT_INS), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
115+
$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(libdir_SQ)'
116+
$(INSTALL) -m644 lib/tclIndex '$(DESTDIR_SQ)$(libdir_SQ)'
117+
$(foreach p,$(ALL_LIBFILES), $(INSTALL) -m644 $p '$(DESTDIR_SQ)$(libdir_SQ)' ;)
126118

127119
dist-version:
128120
@mkdir -p $(TARDIR)

git-gui.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ You should have received a copy of the GNU General Public License
2020
along with this program; if not, write to the Free Software
2121
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
2222

23+
######################################################################
24+
##
25+
## Tcl/Tk sanity check
26+
27+
if {[catch {package require Tcl 8.4} err]
28+
|| [catch {package require Tk 8.4} err]
29+
} {
30+
catch {wm withdraw .}
31+
tk_messageBox \
32+
-icon error \
33+
-type ok \
34+
-title "git-gui: fatal error" \
35+
-message $err
36+
exit 1
37+
}
38+
2339
######################################################################
2440
##
2541
## enable verbose loading?
@@ -1228,7 +1244,7 @@ font create font_diffbold
12281244

12291245
foreach class {Button Checkbutton Entry Label
12301246
Labelframe Listbox Menu Message
1231-
Radiobutton Text} {
1247+
Radiobutton Spinbox Text} {
12321248
option add *$class.font font_ui
12331249
}
12341250
unset class

0 commit comments

Comments
 (0)