| 1 |
--- a/tcl_deal.c |
| 2 |
+++ b/tcl_deal.c |
| 3 |
@@ -453,7 +453,7 @@ DEAL31_API int *Deal_Init(Tcl_Interp *in |
| 4 |
|
| 5 |
Tcl_CreateObjCommand(interp,"deal_init_tcl",tcl_init,NULL,NULL); |
| 6 |
|
| 7 |
- result=Tcl_VarEval(interp,"source deal.tcl",NULL); |
| 8 |
+ result=Tcl_VarEval(interp,"source /usr/share/deal/deal.tcl",NULL); |
| 9 |
if (result==TCL_ERROR) { |
| 10 |
tcl_error(interp); |
| 11 |
} |
| 12 |
--- a/input/smartstack.tcl |
| 13 |
+++ b/input/smartstack.tcl |
| 14 |
@@ -17,7 +17,7 @@ |
| 15 |
# along with this program; if not, write to the Free Software |
| 16 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 |
# |
| 18 |
-source lib/handFactory.tcl |
| 19 |
+source /usr/share/deal/lib/handFactory.tcl |
| 20 |
|
| 21 |
namespace eval smartstack { |
| 22 |
|
| 23 |
--- a/input/giblib.tcl |
| 24 |
+++ b/input/giblib.tcl |
| 25 |
@@ -17,7 +17,7 @@ |
| 26 |
# along with this program; if not, write to the Free Software |
| 27 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 28 |
# |
| 29 |
-source lib/gib.tcl |
| 30 |
+source /usr/share/deal/lib/gib.tcl |
| 31 |
|
| 32 |
# |
| 33 |
# The giblib implements the ability to read files of the |
| 34 |
--- a/lib/ddeval.tcl |
| 35 |
+++ b/lib/ddeval.tcl |
| 36 |
@@ -18,7 +18,7 @@ |
| 37 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 38 |
# |
| 39 |
|
| 40 |
-source lib/handProc.tcl |
| 41 |
+source /usr/share/deal/lib/handProc.tcl |
| 42 |
|
| 43 |
namespace eval ddeval { |
| 44 |
variable ddData |
| 45 |
--- a/lib/binky.tcl |
| 46 |
+++ b/lib/binky.tcl |
| 47 |
@@ -18,7 +18,7 @@ |
| 48 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 49 |
# |
| 50 |
|
| 51 |
-source lib/handProc.tcl |
| 52 |
+source /usr/share/deal/lib/handProc.tcl |
| 53 |
|
| 54 |
namespace eval binky { |
| 55 |
variable binkyData |
| 56 |
--- a/lib/parscore.tcl |
| 57 |
+++ b/lib/parscore.tcl |
| 58 |
@@ -18,7 +18,7 @@ |
| 59 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 60 |
# |
| 61 |
|
| 62 |
-source lib/score.tcl |
| 63 |
+source /usr/share/deal/lib/score.tcl |
| 64 |
|
| 65 |
proc rlist {A B C D} {list $D $C $B $A} |
| 66 |
|
| 67 |
--- a/format/gibpar |
| 68 |
+++ b/format/gibpar |
| 69 |
@@ -1 +1 @@ |
| 70 |
-source format/par |
| 71 |
+source /usr/share/deal/format/par |
| 72 |
--- a/format/par |
| 73 |
+++ b/format/par |
| 74 |
@@ -17,7 +17,7 @@ |
| 75 |
# along with this program; if not, write to the Free Software |
| 76 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 77 |
# |
| 78 |
-source lib/parscore.tcl |
| 79 |
+source /usr/share/deal/lib/parscore.tcl |
| 80 |
|
| 81 |
namespace eval par { |
| 82 |
|
| 83 |
--- a/format/parArticle |
| 84 |
+++ b/format/parArticle |
| 85 |
@@ -20,7 +20,7 @@ |
| 86 |
# along with this program; if not, write to the Free Software |
| 87 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 88 |
# |
| 89 |
-source lib/parscore.tcl |
| 90 |
+source /usr/share/deal/lib/parscore.tcl |
| 91 |
|
| 92 |
set particle(num) 0 |
| 93 |
set particle(dealer) [list north east south west] |
| 94 |
--- a/ex/3nt-nostack.tcl |
| 95 |
+++ b/ex/3nt-nostack.tcl |
| 96 |
@@ -13,7 +13,7 @@ |
| 97 |
# This is slower than the smart-stacking version by an order of magnitude |
| 98 |
# when requesting 1000 deals. |
| 99 |
# |
| 100 |
-source format/none |
| 101 |
+source /usr/share/deal/format/none |
| 102 |
|
| 103 |
south is "AK K52 98765 962" |
| 104 |
|
| 105 |
--- a/ex/3nt-stack.tcl |
| 106 |
+++ b/ex/3nt-stack.tcl |
| 107 |
@@ -13,7 +13,7 @@ |
| 108 |
# |
| 109 |
# Obviously, they shouldn't be exactly the same, but they should be similar. |
| 110 |
|
| 111 |
-source format/none |
| 112 |
+source /usr/share/deal/format/none |
| 113 |
|
| 114 |
source ex/3nt-common.tcl |
| 115 |
|
| 116 |
--- a/html/ex/3nt-nostack.txt |
| 117 |
+++ b/html/ex/3nt-nostack.txt |
| 118 |
@@ -13,7 +13,7 @@ |
| 119 |
# This is slower than the smart-stacking version by an order of magnitude |
| 120 |
# when requesting 1000 deals. |
| 121 |
# |
| 122 |
-source format/none |
| 123 |
+source /usr/share/deal/format/none |
| 124 |
|
| 125 |
south is "AK K52 98765 962" |
| 126 |
|
| 127 |
--- a/html/ex/3nt-stack.txt |
| 128 |
+++ b/html/ex/3nt-stack.txt |
| 129 |
@@ -13,7 +13,7 @@ |
| 130 |
# |
| 131 |
# Obviously, they shouldn't be exactly the same, but they should be similar. |
| 132 |
|
| 133 |
-source format/none |
| 134 |
+source /usr/share/deal/format/none |
| 135 |
|
| 136 |
shapecond gam3NT.shape {$s<=3&&$h<=3&&(($d>=7&&$c<=4)||($c>=7&&$d<=4))} |
| 137 |
|
| 138 |
--- a/lib/features.tcl |
| 139 |
+++ b/lib/features.tcl |
| 140 |
@@ -55,7 +55,7 @@ namespace eval deal { |
| 141 |
|
| 142 |
|
| 143 |
proc input {format args} { |
| 144 |
- uplevel #0 [list source "input/$format.tcl" ] |
| 145 |
+ uplevel #0 [list source "/usr/share/deal/input/$format.tcl" ] |
| 146 |
set command [list "${format}::set_input"] |
| 147 |
foreach arg $args { |
| 148 |
lappend command $arg |
| 149 |
--- a/ex/7.tcl |
| 150 |
+++ b/ex/7.tcl |
| 151 |
@@ -8,7 +8,7 @@ |
| 152 |
# to define opening bids and later check to see if a hand |
| 153 |
# fits the conditions |
| 154 |
|
| 155 |
-source lib/bid.tcl |
| 156 |
+source /usr/share/deal/lib/bid.tcl |
| 157 |
|
| 158 |
defvector AKQ 4 3 2 |
| 159 |
defvector Top4 1 1 1 1 |
| 160 |
--- a/html/ex/7.txt |
| 161 |
+++ b/html/ex/7.txt |
| 162 |
@@ -8,7 +8,7 @@ |
| 163 |
# to define opening bids and later check to see if a hand |
| 164 |
# fits the conditions |
| 165 |
|
| 166 |
-source lib/bid.tcl |
| 167 |
+source /usr/share/deal/lib/bid.tcl |
| 168 |
|
| 169 |
defvector AKQ 4 3 2 |
| 170 |
defvector Top4 1 1 1 1 |
| 171 |
--- a/deal.tcl |
| 172 |
+++ b/deal.tcl |
| 173 |
@@ -30,11 +30,11 @@ if {[string first "Windows" $tcl_platfor |
| 174 |
|
| 175 |
catch { deal_init_tcl } |
| 176 |
|
| 177 |
-source lib/features.tcl |
| 178 |
+source /usr/share/deal/lib/features.tcl |
| 179 |
|
| 180 |
# If set to non-zero, and your terminal supports UTF-8, deal's default output format will write |
| 181 |
#the deal with unicode suit symbols. |
| 182 |
set deal::unicode 1 |
| 183 |
|
| 184 |
# Edit this line to make your default format any format |
| 185 |
-source format/default |
| 186 |
+source /usr/share/deal/format/default |