Jump to content

Unix (MacOS X/ wine) Version


Recommended Posts

Only about a year and a half too late, I've coded a small shell script which is an initial (untested as yet) version of the Multi-Install Tool for Unix. The script may be found on the G3 dev wiki at http://dev.gibberlings3.net/index.php/Mult...ol/Unix_Version (note that you will need to be registered at these forums in order to view this page). To use the multi-install tool, simply drop the code displayed there into a text file - eg, mit.sh , and making sure the executable permission is set, use as follows from a terminal:

./mit.sh current_install new_location


Please use this forum for support issues and general praise, and the talk page for technical concerns (eg, bugs). Feel free to modify the code on the wiki page as you like, but please remember to explain the rationale behind your change in the Edit summary, and discuss non-trivial changes on the talk page first.

Link to comment

This script has now been superceded by the Java Rewrite of MIT, which uses this same technique when running on OS X.

I am going to take the wiki page down, since it is no longer relevant, and so I record the final version of this script here incase anyone is still interested in it.


# Baldur's Gate 2 Multi-Install Tool for MacOS X / wine / cygwin.

# You are hereby free to modify and redistribute this program under
# the terms of the GNU General Public License Version 2, or any later
# version published by the Free Software Foundation. To view a copy
# of this license, see http://www.gnu.org/licenses/gpl.html .

lndir(){ #Usage: lndir file location
for file in $1/*; do
 if [ -d $file ]; then
	 mkdir $2/`basename $file`
	 lndir $file $2/`basename $file`
   ln -s $file $2

lndir $1 $2
needed_files=baldur.ini chitin.key #Maybe need more?  
for i in $needed_files; do
then cp -f $i $2/$i

sed -i 's/$1/$2/g' baldur.ini

Link to comment


This topic is now archived and is closed to further replies.

This topic is now closed to further replies.
  • Create New...