thomasoa / andrews-deal

Automatically exported from code.google.com/p/andrews-deal
Other
10 stars 7 forks source link

User wants to run Deal from another directory #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A user requested the ability to run Deal from a directory other than the
install directory.

Original issue reported on code.google.com by thomasoa on 9 Oct 2008 at 12:53

GoogleCodeExporter commented 9 years ago
I will have to hold off on this because the Ubuntu package solution was fairly 
gross.
 Will look into other solutions

Original comment by thomasoa on 31 Oct 2008 at 5:07

GoogleCodeExporter commented 9 years ago
Here's a patch that allows -p on the command line to specify the deal
directory.  This is a bad design, but it was quick.

I tested this by changing to my home directory and running the command:

    deal -p ~/src/deal3.1.9 ...

after copying the executable into my path (~/bin).  You can, of course,
copy the source tree into whatever directory you want and use that in the
-p option.

This patch also includes changes to silence warnings when building on
x86_64 architecture due to pointer casts to integer.  (I don't understand
tcl well enough to know why these occur.  I just changed int to long.)  The
patch for -p is confined to tcl_deal.c and can be applied independently of
all other files.

I did this work on Fedora 15, so I also added Make.fedora to get the
correct -ltcl defined.

Original comment by gtwilli...@gmail.com on 4 Sep 2011 at 10:29

Attachments: