summarylogtreecommitdiffstats
path: root/make_install.patch
blob: a166b43aef720604d958d1d3e5dca60e764d6fdc (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
--- makeinstall.tcl_raw 2019-05-14 09:29:21.710237591 -0300
+++ makeinstall.tcl     2019-05-14 09:08:44.700196739 -0300
@@ -18,6 +18,8 @@
 
 proc copyfile {force src dst} {
   if {$force} {
+    set dirname [file dirname $dst]
+    file mkdir $dirname
     if {[catch { 
       file copy -force -- $src $dst
     }]} {
@@ -58,9 +60,9 @@
   copyfile 0 xtherion/xtherion.ini /usr/local/etc/xtherion.ini
   file attributes /usr/local/etc/xtherion.ini -permissions 0644
 } else {
-  copyfile 1 therion $instdir/bin/therion
-  copyfile 1 xtherion/xtherion $instdir/bin/xtherion
-  copyfile 1 loch/loch $instdir/bin/loch
+  copyfile 1 therion $instdir/usr/bin/therion
+  copyfile 1 xtherion/xtherion $instdir/usr/bin/xtherion
+  copyfile 1 loch/loch $instdir/usr/bin/loch
   copyfile 1 therion.ini $sysconfdir/therion.ini.new
   copyfile 1 xtherion/xtherion.ini $sysconfdir/xtherion.ini.new
   copyfile 0 therion.ini $sysconfdir/therion.ini