Status: offline
Registered: 11/29/2006
Posts: 16
|
Hello!I'm having a few problems in creting a help database for my recently created package. Although I have compiled my mip file mkhelpdb dracs.hd helpdb.mip
and added to the $hlib/extern.pkgreset helpdb = "lib$helpdb.mip\
(...)
,home$scripts/DRACS/helpdb.mip\
"I cannot get my help files working. Notice that my package is called DRACS and is correctly placed in the directory with the same name, as are the different help files.I don't even have a help file for dracs (the package itself) but I get this strange resultdracs> help dracs
package name `dracs' (hd=dracs.hd) is not unique
package name `_dracs' (hd=_dracs.hd) is not unique
No help available for `dracs'It seems that something is wrong in the way I compiled it... I'm not sure that this is a basic stuff but I prefer to show you only this way before dumping all my help file tree in here.By the way, could you tell me how to script a package that has interactive prompting (like for instance, the response task, which you cannot use in non-interactive mode) and make it read the answer to the interactive prompting
from a file or so?My best wishes,Pedro Figueira
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Pedro,I'd have to see your help database files to comment specifically, but in general there are 4 files you need to create a helpdb for a package. For your package I'd image they would look something like:dracs$lib/root.hd[code:1:25ce04e24c]
# Root help directory for the CTIO packages. This dummy package is necessary
# in order to have `ctio' appear as a module in some package, so that the user
# can type "help ctio" (with the `ctio' given as a task)._drace pkg = dracs$lib/rootdracs.hd
[/code:1:25ce04e24c]dracs$lib/rootdracs.hd[code:1:25ce04e24c]
# Root task entry for the CTIO package help tree. Defines `ctio' as both a
# task and a package in the ctio help database.ctio men = dracs$dracs.men,
hlp = dracs$dracs.men,
sys = dracs$dracs.hlp,
pkg = dracs$dracs.hd,
src = dracs$dracs.cl
[/code:1:25ce04e24c]dracs$dracs.men[code:1:25ce04e24c] task1 - complex reductions
task2 - easy reductions
: :
[/code:1:25ce04e24c]dracs$dracs.hd[code:1:25ce04e24c]
# Help directory for the DRACS package.$src = "dracs$src/"
$doc = "dracs$doc/"task1 hlp = doc$task1.hlp, src = src$task1.cl
task2 hlp = doc$task2.hlp, src = src$task2.cl
: : :
[/code:1:25ce04e24c]The dracs$lib/root.hd is what you pass to the MKHELPDB task, the dracs$dracs.men is the help menu you see when you ask for help on a package name. From the error I suspect some of the definitions in the root$.hd files are in your main dracs$dracs.hd file??[quote:25ce04e24c]By the way, could you tell me how to script a package that has interactive prompting (like for instance, the response task, which you cannot use in non-interactive mode) and make it read the answer to the interactive prompting
from a file or so?[/quote:25ce04e24c]I think what you're referring to here is redirecting the cursor input, see "help cursors" for more infomation.Cheers,
-Mike
|