Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37711930
en ru br
Репозитории ALT
5.1: 8.1-alt3
4.1: 8.1-alt2
4.0: 8.0.3-alt1
3.0: 7.2.3-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: tkcvs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: tkcvs.tcl.diff
Скачать


--- tkcvs-8.0.3.orig/tkcvs/tkcvs.tcl
+++ tkcvs-8.0.3/tkcvs/tkcvs.tcl
@@ -44,13 +44,15 @@ if {$tcl_platform(platform) == "windows"
   set TclExe [file attributes $TclExe -shortname]
 }
 
-set TclRoot [file join [file dirname $ScriptBin]]
+#set TclRoot [file join [file dirname $ScriptBin]]
+set TclRoot /usr/share
+
 #puts "TclRoot $TclRoot"
 if {$TclRoot == "."} {
   set TclRoot [pwd]
 }
 #puts "TclRoot $TclRoot"
-set TclRoot [file join [file dirname $TclRoot] "lib"]
+#set TclRoot [file join [file dirname $TclRoot] "lib"]
 #puts "TclRoot $TclRoot"
 
 # allow runtime replacement
@@ -59,7 +61,7 @@ if {[info exists env(TCLROOT)]} {
 }
 #puts "TclRoot $TclRoot"
 
-set TCDIR [file join $TclRoot tkcvs]
+set TCDIR /usr/share/tkcvs
 set cvscfg(bitmapdir) [file join $TclRoot tkcvs bitmaps]
 #puts "TCDIR $TCDIR"
 #puts "BITMAPDIR $cvscfg(bitmapdir)"
@@ -89,8 +91,8 @@ if { [info exists env(HOME)] } {
 }
 
 # Read in defaults
-if {[file exists [file join $TCDIR tkcvs_def.tcl]]} {
-  source [file join $TCDIR tkcvs_def.tcl]
+if {[file exists /etc/tkcvs/tkcvs_def.tcl]} {
+  source /etc/tkcvs/tkcvs_def.tcl
 }
 
 # This helps us recover from a problem left behind by tkcvs 7.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin