diff options
Diffstat (limited to 'nagelfar-paths.patch')
-rw-r--r-- | nagelfar-paths.patch | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/nagelfar-paths.patch b/nagelfar-paths.patch index 1e1b7ef66af4..d69622dbacf3 100644 --- a/nagelfar-paths.patch +++ b/nagelfar-paths.patch @@ -1,24 +1,40 @@ --- a/nagelfar.tcl +++ b/nagelfar.tcl -@@ -28,7 +28,7 @@ - #---------------------------------------------------------------------- +@@ -34,32 +34,13 @@ + # This variable should be overwritten by the build process + set version "Version ??? ???" - set debug 0 --package require Tcl 8.4 -+package require Tcl 8.5 +-# Allow thisScript to be predefined (used for test) +-if {![info exists thisScript]} { +- set thisScript [file normalize [file join [pwd] [info script]]] +-} +-set thisDir [file dirname $thisScript] ++# This makes it possible to customize where files are installed ++set dbDir /usr/lib/nagelfar ++set docDir /usr/share/doc/nagelfar ++set libDir /usr/lib/nagelfar/lib - package provide app-nagelfar 1.0 - # This variable should be overwritten by the build process -@@ -50,9 +50,9 @@ - unset tmplink +-# Follow any link +-set tmplink $thisScript +-while {[file type $tmplink] == "link"} { +- set tmplink [file readlink $tmplink] +- set tmplink [file normalize [file join $thisDir $tmplink]] +- set thisDir [file dirname $tmplink] +-} +-unset tmplink ++lappend auto_path $libDir - # This makes it possible to customize where files are installed +-# This makes it possible to customize where files are installed -set dbDir $thisDir -set docDir $thisDir/doc -set libDir $thisDir/lib -+set dbDir /usr/lib/nagelfar -+set docDir /usr/share/doc/nagelfar -+set libDir /usr/lib/nagelfar/lib - - # Search where the script is, to be able to place e.g. ctext there. - if {[info exists ::starkit::topdir]} { +- +-# Search where the script is, to be able to place e.g. ctext there. +-if {[info exists ::starkit::topdir]} { +- lappend auto_path [file dirname [file normalize $::starkit::topdir]] +-} else { +- lappend auto_path $libDir +-} + set version "Version 1.3.0 2018-10-03" + #---------------------------------------------------------------------- + # Nagelfar, a syntax checker for Tcl. |