Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37411838
en ru br
Репозитории ALT
S:2.3.8-alt1
5.1: 2.1.1-alt7
4.1: 2.1.1-alt7
4.0: 2.1.1-alt7
3.0: 2.1.1-alt6
www.altlinux.org/Changes

Группа :: Интерпретаторы команд
Пакет: tcl-readline

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

Патч: tclreadline-2.1.0-init.patch
Скачать


--- tclreadline-2.1.0/tclreadlineInit.tcl.in~	2004-11-03 18:33:01 +0300
+++ tclreadline-2.1.0/tclreadlineInit.tcl.in	2004-11-03 18:34:35 +0300
@@ -11,22 +11,7 @@
 
 package provide tclreadline @VERSION@
 
-namespace eval tclreadline:: {
-    namespace export Init
-}
-
-proc ::tclreadline::Init {} {
-    uplevel #0 {
-	if ![info exists tclreadline::library] {
-	    if [catch {load [file join @TCLRL_LIBDIR@ libtclreadline[info sharedlibextension]]} msg] {
-		puts stderr $msg
-		exit 2
-	    }
-	}
-    }
-}
-
-tclreadline::Init
+namespace eval tclreadline:: {}
 ::tclreadline::readline customcompleter ::tclreadline::ScriptCompleter
 
 source [file join [file dirname [info script]] tclreadlineSetup.tcl]
--- tclreadline-2.1.0/pkgIndex.tcl.in~	2004-11-03 18:33:01 +0300
+++ tclreadline-2.1.0/pkgIndex.tcl.in	2004-11-03 18:37:44 +0300
@@ -9,5 +9,4 @@
 # Copyright (c) 1998 - 2001, Johannes Zellner <johannes@zellner.org>
 # This software is copyright under the BSD license.
 
-package ifneeded tclreadline @VERSION@ \
-    [list source [file join $dir tclreadlineInit.tcl]]
+package ifneeded tclreadline @VERSION@ "[list load [file join $dir .. .. .. lib tcl libtclreadline.so]]; [list source [file join $dir tclreadlineInit.tcl]]"
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin