~ubuntu-branches/ubuntu/utopic/critcl/utopic

« back to all changes in this revision

Viewing changes to doc/include/using_bpkgi.inc

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-05-11 00:08:06 UTC
  • Revision ID: package-import@ubuntu.com-20130511000806-7hq1zc3fnn0gat79
Tags: upstream-3.1.9
ImportĀ upstreamĀ versionĀ 3.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[subsection {Building And Installing A Package}]
 
2
 
 
3
Here we assume that you know the basics of how to build a package.
 
4
If not, please read section [sectref {Building A Package}] first.
 
5
 
 
6
[para]
 
7
 
 
8
By default [cmd critcl] will place all newly-made packages in the
 
9
subdirectory [file lib] of the current working directory.
 
10
 
 
11
I.e. running
 
12
 
 
13
[example {
 
14
    critcl -pkg foo
 
15
}]
 
16
 
 
17
will create the directory [file lib/foo] which contains all the files
 
18
of the package.
 
19
 
 
20
[para]
 
21
 
 
22
When this behaviour is unwanted the option [option -libdir] is available,
 
23
allowing the explicit specification of the destination location to use.
 
24
 
 
25
[example {
 
26
    critcl -pkg -libdir /path/to/packages foo
 
27
}]
 
28
 
 
29
A common use might be to not only build the package in question, but
 
30
to also immediately install it directly in the path where the user's
 
31
[cmd tclsh] will be able to find it.
 
32
 
 
33
Assuming, for example, that the [cmd tclsh] in question is installed
 
34
at [file /path/to/bin/tclsh], with the packages searched for under
 
35
[file /path/to/lib] ([lb][cmd {info library}][rb]), the command
 
36
 
 
37
[example {
 
38
    critcl -pkg -libdir /path/to/lib foo
 
39
}]
 
40
 
 
41
will build the package and place it in the directory
 
42
[file /path/to/lib/foo].