Tk Library Source Code

View Ticket
Login
Ticket UUID: 1253947
Title: installer script fails with non-existing directories
Type: Bug Version: None
Submitter: arjenmarkus Created on: 2005-08-08 06:52:10
Subsystem: None Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-09-27 23:24:56
Resolution: Invalid Closed By: andreas_kupries
    Closed on: 2005-09-26 23:28:53
Description:
I updated the complete directory tree for Tcllib, using
cvs update (without any options) and then ran the
installer script like this:

> tclsh installer.tcl

The only option I set in the GUI that came up was to
use a "dry run." 

The script initially failed with error messages from
[glob] complaining about asn/*.tcl and so on. When I
removed this and other directories that were not
present in my directory tree but were listed in
"installed_modules.tcl", it all worked, that is the
"dry" installation produced a long list of files that
were detected and actions that were supposedly taken.

Presumably I should have used the ./configure script
and the resulting make file, but "installer.tcl" is
such an inviting name ;)
User Comments: andreas_kupries added on 2005-09-27 23:24:56:
Logged In: YES 
user_id=75003

Yes, definitely. To not have -dP as defaults is IMNSHO a
misfeature of the cvs client.

nobody added on 2005-09-27 13:29:14:
Logged In: NO 

You are (of course) completely right: I always do "cvs
update" without any options. Hm, it looks like I should
change that habit to "cvs update -dP"

Arjen

andreas_kupries added on 2005-09-27 06:28:53:
Logged In: YES 
user_id=75003

Arjen, this is likely not a problem in the installer, but in
how you updated your tcllib workspace. My guess is that you
used a plain  "cvs update", right ?

You have to run "cvs update -d" to ensure that any _new_
directories in the CVS are created in your workspace as
well. -d for directory. A plain update ignores new
directories, which is bad. And the fully proper way is to
use "cvs update -dP". The -P option ensuring that
directories which were emptied in the CVS are removed from
your workspace (Prune).