From 5ec6074f0633939fd17d94111d10c6c6b062978c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 11:49:36 +0200 Subject: Adding upstream version 1:2.30.2. Signed-off-by: Daniel Baumann --- git-gui/macosx/AppMain.tcl | 29 +++++++++++++++++++++++++++++ git-gui/macosx/Info.plist | 30 ++++++++++++++++++++++++++++++ git-gui/macosx/git-gui.icns | Bin 0 -> 28866 bytes 3 files changed, 59 insertions(+) create mode 100644 git-gui/macosx/AppMain.tcl create mode 100644 git-gui/macosx/Info.plist create mode 100644 git-gui/macosx/git-gui.icns (limited to 'git-gui/macosx') diff --git a/git-gui/macosx/AppMain.tcl b/git-gui/macosx/AppMain.tcl new file mode 100644 index 0000000..b6c6dc3 --- /dev/null +++ b/git-gui/macosx/AppMain.tcl @@ -0,0 +1,29 @@ +set gitexecdir {@@gitexecdir@@} +if { [info exists ::env(GIT_GUI_LIB_DIR) ] } { + set gitguilib $::env(GIT_GUI_LIB_DIR) +} else { + set gitguilib {@@GITGUI_LIBDIR@@} +} + +set env(PATH) "$gitexecdir:$env(PATH)" + +if {[string first -psn [lindex $argv 0]] == 0} { + lset argv 0 [file join $gitexecdir git-gui] +} + +if {[file tail [lindex $argv 0]] eq {gitk}} { + set argv0 [lindex $argv 0] + set AppMain_source $argv0 +} else { + set argv0 [file join $gitexecdir [file tail [lindex $argv 0]]] + set AppMain_source [file join $gitguilib git-gui.tcl] + if {[info exists env(PWD)]} { + cd $env(PWD) + } elseif {[pwd] eq {/}} { + cd $env(HOME) + } +} + +unset gitexecdir gitguilib +set argv [lrange $argv 1 end] +source $AppMain_source diff --git a/git-gui/macosx/Info.plist b/git-gui/macosx/Info.plist new file mode 100644 index 0000000..1ade121 --- /dev/null +++ b/git-gui/macosx/Info.plist @@ -0,0 +1,30 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + @@GITGUI_TKEXECUTABLE@@ + CFBundleGetInfoString + Git Gui @@GITGUI_VERSION@@ © 2006-2007 Shawn Pearce, et. al. + CFBundleIconFile + git-gui.icns + CFBundleIdentifier + cz.or.repo.git-gui + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Git Gui + CFBundlePackageType + APPL + CFBundleShortVersionString + @@GITGUI_VERSION@@ + CFBundleSignature + GITg + CFBundleVersion + @@GITGUI_VERSION@@ + NSHighResolutionCapable + + + diff --git a/git-gui/macosx/git-gui.icns b/git-gui/macosx/git-gui.icns new file mode 100644 index 0000000..77d88a7 Binary files /dev/null and b/git-gui/macosx/git-gui.icns differ -- cgit v1.2.3