diff --git a/SOURCES/rhino-shell-manpage.patch b/SOURCES/rhino-shell-manpage.patch index 7f18186..5c5e2d8 100644 --- a/SOURCES/rhino-shell-manpage.patch +++ b/SOURCES/rhino-shell-manpage.patch @@ -27,15 +27,15 @@ index ae00108..35cbfee 100644 diff --git a/man/rhino.1 b/man/rhino.1 new file mode 100644 -index 0000000..5b35088 +index 0000000..e04a8df --- /dev/null +++ b/man/rhino.1 -@@ -0,0 +1,91 @@ +@@ -0,0 +1,117 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) -+.TH RHINO 1 "February 12, 2005" ++.TH RHINO 1 "September 09, 2013" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: @@ -70,6 +70,10 @@ index 0000000..5b35088 + +.SH OPTIONS + ++.IP -?,\ -help ++Displays help messages. ++.IP -w ++Enable warnings. +.IP -e\ \fIscript_source\fP +Executes script_source as a JavaScript script. +.IP -f\ \fIscript_filename_or_url\fP @@ -77,7 +81,21 @@ index 0000000..5b35088 +.IP -opt,\ -O\ \fIoptLevel\fP +Optimizes at level optLevel, which must be an integer between 0 and 9. +.IP -version\ \fIversionNumber\fP -+Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, or 140. See JavaScript Language Versions for more information on language versions. ++Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, 140, 150, 160, 170 or 180. See JavaScript Language Versions for more information on language versions. ++.IP -modules\ \fIuri\fP ++Add a single path or URL element to the CommonJS module search path. (implies -require) ++.IP -require ++Enable CommonJS module support. ++.IP -sandbox ++Enable CommonJS sandbox mode. (implies -require) ++.IP -debug ++Generate debug code. ++.IP -strict ++Enable strict mode warnings. ++.IP -fatal-warnings ++Treat warnings as errors. ++.IP -encoding\ \fIcharset\fP ++Use specified character encoding as default when reading scripts. + +.SH PREDEFINED PROPERTIES + @@ -85,12 +103,18 @@ index 0000000..5b35088 + +.IP arguments +The arguments object is an array containing the strings of all the arguments given at the command line when the shell was invoked. ++.IP environment ++Returns the current environment object. ++.IP history ++Displays the shell command history. +.IP help() +Executing the help function will print usage and help messages. +.IP defineClass(\fIclassName\fP) +Define an extension using the Java class named with the string argument className. Uses ScriptableObject.defineClass() to define the extension. +.IP deserialize(\fIfilename\fP) +Restore from the specified file an object previously written by a call to serialize. ++.IP gc() ++Runs the garbage collector. +.IP load(\fI[filename,\&.\&.\&.]\fP) +Load JavaScript source files named by string arguments. If multiple arguments are given, each file is read in and executed in turn. +.IP loadClass(\fIclassName\fP) @@ -103,6 +127,8 @@ index 0000000..5b35088 +Open an input connection to the given string url, read all its bytes and convert them to a string using the specified character coding or default character coding if explicit coding argument is not given. +.IP runCommand(\fIcommandName,[arg,\&.\&.\&.][options]\fP) +Execute the specified command with the given argument and options as a separate process and return the exit status of the process. For details, see JavaDoc for org.mozilla.javascript.tools.shell.Global#runCommand. ++.IP seal(\fIobject\fP) ++Seal the specified object so any attempt to add, delete or modify its properties would throw an exception. +.IP serialize(\fIobject,filename\fP) +Serialize the given object to the specified file. +.IP spawn(\fIfunctionOrScript\fP) @@ -112,7 +138,7 @@ index 0000000..5b35088 +.IP quit() +Quit shell. The shell will also quit in interactive mode if an end-of-file character is typed at the prompt. +.IP version(\fI[number]\fP) -+Get or set JavaScript version number. If no argument is supplied, the current version number is returned. If an argument is supplied, it is expected to be one of 100, 110, 120, 130, or 140 to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, or 1.4 respectively. ++Get or set JavaScript version number. If no argument is supplied, the current version number is returned. If an argument is supplied, it is expected to be one of 100, 110, 120, 130, 140, 150, 160, 170 or 180 to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7 or 1.8 respectively. + +.SH SEE ALSO +The online documentation under @@ -121,4 +147,4 @@ index 0000000..5b35088 +.UE + +.SH AUTHOR -+This manual page was written by Wolfgang Baer . ++This manual page was written by Wolfgang Baer , with modifications by Elliott Baron . diff --git a/SPECS/rhino.spec b/SPECS/rhino.spec index 5aee085..ce1ddf3 100644 --- a/SPECS/rhino.spec +++ b/SPECS/rhino.spec @@ -35,7 +35,7 @@ Name: rhino # of Javascript version 1.7 (which is independent from this particular implementation, # e.g., there is C++ implementation in Spidermonkey) Version: 1.7R4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: JavaScript for Java License: MPLv2.0 @@ -169,6 +169,10 @@ install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom %doc %{_javadocdir}/%{name} %changelog +* Fri Aug 01 2014 Elliott Baron - 1.7R4-5 +- Update man page patch +- Resolves: rhbz#948445 + * Fri Dec 27 2013 Daniel Mach - 1.7R4-4 - Mass rebuild 2013-12-27