git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17473 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-08-13 03:50:42 +00:00
parent 4cb2493b3c
commit 7546a60acd
4 changed files with 147 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-08-05 Martin Brecher <martin@mb-itconsulting.com>
* Documentation/gopen.1: New file.
* Documentation/GNUmakefile: Install it.
2003-08-10 23:27 Alexander Malmberg <alexander@malmberg.org>
* Headers/Additions/GNUstepGUI/GSFontInfo.h: Add new methods in

View file

@ -62,6 +62,9 @@ BUGS_TEXI_FILES = version.texi
BUGS_TEXT_MAIN = todo.texi
BUGS_DOC_INSTALL_DIR = Developer/Gui/ReleaseNotes/$(VERSION)
# Manual pages to install
MAN1_PAGES = gopen.1
#
# NB. Library reference documentation is generated by rules in the postamble
# file using the make file ../Source/DocMakefile. If headers are added to the

View file

@ -52,6 +52,19 @@ after-install::
(cd GuiUser; $(TAR) cf - .) | \
(cd $(GNUSTEP_DOCUMENTATION)/$(GuiUser_DOC_INSTALL_DIR); $(TAR) xf -)
rm -rf $(GNUSTEP_DOCUMENTATION)/$(GuiUser_DOC_INSTALL_DIR)/CVS
if [ ! -f $(GNUSTEP_DOCUMENTATION_MAN) ]; then \
$(MKDIRS) $(GNUSTEP_DOCUMENTATION_MAN); \
fi; \
if [ ! -f $(GNUSTEP_DOCUMENTATION_MAN)/man1 ]; then \
$(MKDIRS) $(GNUSTEP_DOCUMENTATION_MAN)/man1; \
fi; \
for file in $(MAN1_PAGES) __done; do \
if [ $$file != __done ]; then \
$(INSTALL_DATA) $$file $(GNUSTEP_DOCUMENTATION_MAN)/man1/$$file; \
which gzip && rm -f $(GNUSTEP_DOCUMENTATION_MAN)/man1/$$file.gz \
&& gzip -9 $(GNUSTEP_DOCUMENTATION_MAN)/man1/$$file; \
fi; \
done; \
# Things to do before uninstalling
# before-uninstall::

126
Documentation/gopen.1 Normal file
View file

@ -0,0 +1,126 @@
.\"gopen(1) man page
.\"put together by Martin Brecher <martin@gnustep.de>
.\"
.\"Process this file with
.\"groff -man -Tascii gopen.1
.\"
.TH GOPEN 1 "August 2003" GNUstep "GNUstep System Manual"
.SH NAME
gopen \- open files
.SH SYNOPSIS
.B gopen
.RB [ -a
.IR application ]
.RB [ -o ]
.RB [ -p ]
.RB [ -NXHost
.IR hostname ]
.RI [ filename ]
.P
.SH DESCRIPTION
The
.B gopen
command allows you open a file (or directory) as if you had double clicked
the object's icon.
.PP
It is possible to specify one or more
.I filenames
which are interpreted relative to the current working directory.
.PP
By default,
.B gopen
will open
.I filename
with the application currently assigned to the file's extension. But by
specifing the
.B -a
flag on the command line you can tell
.B gopen
to open the file with anther application.
.PP
You can also directly print a file without (
.B -p
) or with (
.B -p -o
) opening it.
.PP
As with most other GNUstep software, it is easily possible
to attach the process to a remote window server using the
.B -NXHost
flag.
.PP
.SH OPTIONS
.IP "\fB-a \fIapplication"
use
.I application
to open
.I filename
.IP "\fB-o"
open
.I filename
(may be used in conjunction with
.B -p
).
.IP "\fB-p"
print
.I filename
instead of opening.
.IP "\fB-NXHost \fIhostname"
attach to remote window server on
.I hostname
.PP
.SH EXAMPLES
Open all files with a .txt extension in the current directory:
.PP
.I gopen *.txt
.PP
To open a source file in CodeEditor (instead of the current default
application), type:
.PP
.I gopen -a CodeEditor MySourceFile.m
.PP
To print the .plan file in your home folder, use the
.B -p
flag:
.PP
.I gopen -p ~/.plan
.PP
.SH BUGS
Using the
.B -a
.I application
argument,
.B gopen
allows you to open any kind of file with any application you want. This does,
however, not work with applications employing the NSDocument architecture
as they will only receive filenames whose types the application has registered.
To circumvent this limitation, applications may advertise their ability to open
all kinds of files through the "*" filetype.
.B gopen
fails when only the
.B -a
.I application
argument but no
.I filename
is present. Thus, to simply launch an application, please use
.B openapp(1)
instead of
.B gopen
or
.B gopen -a
.IR application
.P
.SH SEE ALSO
GNUstep(7), openapp(1)
.P
.SH HISTORY
.B gopen
was written November 2001.
.P
This manual page was first written July 2003.
.P
.SH AUTHORS
.B gopen
was written by Gregory Casamento <greg_casamento@yahoo.com>.
.P
This man page was written by Martin Brecher <martin@mb-itconsulting.com>.