summarylogtreecommitdiffstats
path: root/nagelfar-paths.patch
blob: 9dc6b56a15d8cb9600a941901c110dd4beb723be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- a/nagelfar.tcl	2025-02-11 19:51:31.000000000 +0100
+++ b/nagelfar.tcl	2025-12-11 16:26:06.469456036 +0100
@@ -31,35 +31,12 @@
 package require Tcl 8.6-
 
 package provide app-nagelfar 1.0
-# This variable should be overwritten by the build process
-set version "Version ??? ???"
-
-# 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]
-
-# 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
 
 # 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]} {
-    lappend auto_path [file dirname [file normalize $::starkit::topdir]]
-} else {
-    lappend auto_path $libDir
-}
 set version "Version 1.3.5 2025-02-11"
 #----------------------------------------------------------------------
 #  Nagelfar, a syntax checker for Tcl.