From 7546a60acd86212d411b24b8fc8c7df4677e863c Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Wed, 13 Aug 2003 03:50:42 +0000 Subject: [PATCH] Man file git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17473 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 ++ Documentation/GNUmakefile | 3 + Documentation/GNUmakefile.postamble | 13 +++ Documentation/gopen.1 | 126 ++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 Documentation/gopen.1 diff --git a/ChangeLog b/ChangeLog index 892e79f17..e52d5d4bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-05 Martin Brecher + + * Documentation/gopen.1: New file. + * Documentation/GNUmakefile: Install it. + 2003-08-10 23:27 Alexander Malmberg * Headers/Additions/GNUstepGUI/GSFontInfo.h: Add new methods in diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index de1eaed62..8167d741c 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -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 diff --git a/Documentation/GNUmakefile.postamble b/Documentation/GNUmakefile.postamble index 911dc3110..e1ae7df85 100644 --- a/Documentation/GNUmakefile.postamble +++ b/Documentation/GNUmakefile.postamble @@ -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:: diff --git a/Documentation/gopen.1 b/Documentation/gopen.1 new file mode 100644 index 000000000..ab1622148 --- /dev/null +++ b/Documentation/gopen.1 @@ -0,0 +1,126 @@ +.\"gopen(1) man page +.\"put together by Martin Brecher +.\" +.\"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 . +.P +This man page was written by Martin Brecher .