installation script problem

New Message Reply Date view Thread view Subject view Author view

From: Craig B Upright (cupright@Princeton.EDU)
Date: 9 Mar 01, 05:28 EST


From: Craig B Upright <cupright@Princeton.EDU>
Subject: installation script problem


I'm having some trouble with an installation script.  In version 2.5.4
of the Program Menu, I want to replace the "Statistical Modes Help" file
with a folder of the same name, along with a "Statistical Modes Help.tcl" 
file.

It's not possible to replace a file with a folder in the MacOS.  To get
around that, I'm including this in the script:

# Remove the old Statistical Modes Help file.  Necessary to avoid throwing
# an error when trying to replace a file with a folder.
if {[file isfile [file join $HOME Help "Statistical Modes Help"]]} {
    file delete  [file join $HOME Help "Statistical Modes Help"]
}

Not exactly kosher, perhap, but it works.

The install proc chokes, however, when it comes to actually installing
the folder, and I can't figure out why.  In the installation hierarchy,
the "Statistical Modes Help" folder is located in a "Help" folder.

Any ideas?

-- Craig

______________________________________________________________

Craig Barton Upright     	email:  cupright@princeton.edu
Department of Sociology  	phone:  (609) 258.4539
Princeton University     	fax:    (609) 258.2180
Princeton, New Jersey  08544	http://www.princeton.edu/~cupright/
______________________________________________________________


_______________________________________________
AlphaTcl-developers mailing list
AlphaTcl-developers@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/alphatcl-developers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:51 EST