home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
glibs115.zip
/
doc
/
glib.1
< prev
next >
Wrap
Text File
|
1993-03-20
|
2KB
|
91 lines
.ds PX \s-1POSIX\s+1
.ds UX \s-1UNIX\s+1
.ds AN \s-1ANSI\s+1
.TH GLIB 1 "Mar 20 1993" "GLIB 1.1.5" "Utility Commands"
.SH NAME
glib \- Library file (.LIB) manager for IBM OS/2 2.0 with GNU GCC/2 C++ compiler
.SH SYNOPSIS
.B glib
.I library
.I command
.I ...
.SH COMMANDS
.B -l
.B -a
.I object
.B -d
.I object
.B -x
.I object
.B -b
.I batchfile
.SH DESCRIPTION
.I Glib
adds, extracts and deletes object files (.obj) from a library (.lib)
file. The object and library file formats are described in the
Microsoft application notes included with this package. Where a ".obj"
extension is appropriate for an option parameter it's inclusion is
optional. If omitted the default extension will be a lowercase ".obj".
This default can be overriden by providing at least one extension of
your own. The object name can include zero or more wildcard, "*",
characters.
.SH OPTIONS
.I Glib
accepts the following options.
.TP
.I library
This required option defines the library to be created or opened. The
option should include the .lib extension.
.TP
.BI \-l
List the library contents.
Each module name is listed with it's public definitions.
.TP
.BI \-a " object"
Add object to library. The object will be added to the library and the
library will be rebuilt. If an object with the same name already exists
in the library it will be overwritten.
.TP
.BI \-d " object"
Delete object in library. The object will be deleted from the library
and the library will be rebuilt.
.TP
.BI \-x " object"
Extract object from libray. The object will be extracted from the
library and written to filename object.
.TP
.BI \-b " batchfile"
Read commands from batchfile. With the exception of the library any
commands can be put in a batchfile. The file should contain one option
parameter pair per line. No line continuation characters are needed.
.SH EXAMPLES
.nf
List all the modules and publics in library libc.lib, add module
printf.obj and extract open.obj:
.ft B
glib libc.lib -l -a printf.obj -x open
.ft R
Perform exactly the same operations using a batch file instead of
options on the command line:
.ft B
glib libc.lib -l -b lib.bat
.ft R
The contents of the batch file, lib.bat, are:
.ft B
-a printf.obj
-x open
.ft R
Use a wildcard to extract all the objects from libc.lib:
.ft B
glib libc.lib -x *.obj
.ft R
.fi