Index: ossp-pkg/js/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/js/Makefile.in,v rcsdiff -q -kk '-r1.10' '-r1.11' -u '/v/ossp/cvs/ossp-pkg/js/Makefile.in,v' 2>/dev/null --- Makefile.in 2006/07/22 16:36:19 1.10 +++ Makefile.in 2006/07/22 19:10:06 1.11 @@ -227,10 +227,12 @@ $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1 + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3 $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)/pkgconfig $(SHTOOL) install -c -m 755 js $(DESTDIR)$(bindir)/ $(SHTOOL) install -c -m 644 js.1 $(DESTDIR)$(mandir)/man1/ + $(SHTOOL) install -c -m 644 js.3 $(DESTDIR)$(mandir)/man3/ $(SHTOOL) install -c -m 644 $(LIB_HDR_API) $(DESTDIR)$(includedir)/ @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(LIB_NAME) $(DESTDIR)$(libdir)/ $(SHTOOL) install -c -m 644 js.pc $(DESTDIR)$(libdir)/pkgconfig/ Index: ossp-pkg/js/js.1 RCS File: /v/ossp/cvs/ossp-pkg/js/js.1,v co -q -kk -p'1.4' '/v/ossp/cvs/ossp-pkg/js/js.1,v' | diff -u /dev/null - -L'ossp-pkg/js/js.1' 2>/dev/null --- ossp-pkg/js/js.1 +++ - 2024-05-10 08:38:19.336410476 +0200 @@ -0,0 +1,161 @@ +.TH JS 1 "22 July 2006" +.SH NAME +.BR js " - Mozilla JavaScript Shell" +.SH SYNOPSIS +.B js +.RB [ -w ] +.RB [ -W ] +.RB [ -S ] +.RB [ -x ] +.RB [ -C ] +.RB [ -c +.IR stackchunksize ] +.RB [ -S +.IR maxstacksize ] +.RB [ -b +.IR maxbranches ] +.RB [ -P ] +.RB [ -v +.IR version ] +.RB [ -e +.IR script ] +.RB [ -f +.IR scriptfile ] +.RI [ scriptfile ] +.RI [ scriptarg " ..." "" ] +.SH DESCRIPTION +The Mozilla JavaScript Shell +.B js +is a command line interface to the +.B Mozilla JavaScript +language engine ("SpiderMonkey"), +as provided by the +.B OSSP js +distribution. +The +.B js +program provides a test vehicle for easily evaluating JavaScript scripts, calling JavaScript functions, +trying out debugger primitives, etc. +.SH OPTIONS +.SS Compile-Time Options +.TP 8 +.B -w +Disable the printing of warnings. +.TP 8 +.B -W +Enable the printing of warnings. +.TP 8 +.B -s +Enable strict language parsing during compile-time. +This will print warnings on dubious JavaScript programming practices. +.TP 8 +.B -x +Enable ECMAScript for XML (E4X) support during compile-time. +.TP 8 +.B -C +Compile only. This compiles the script but does not +execute it. +.SS Run-Time Options +.TP 8 +.BI -c " stackchunksize" +Set the stack chunk size to +.I stackchunksize +bytes. The default is +.BR 8192 . +.TP 8 +.BI -S " maxstacksize" +Set a maximum stack size limit to +.I maxstacksize +bytes in order to restruct script resource consumption. +The default is a stack of unlimited size. +.TP 8 +.BI -b " maxbranches" +Set a maximum branch number limit to +.I maxbranches +in order to restrict script resource consumption. The default is an +unlimited number of branches. +.TP 8 +.B -P +Sets the global object???? +.TP 8 +.BI -v " version" +override the numerical JavaScript version number, which the JavaScript +.B version() +function returns, with the value +.IR version . +The argument +.I version +usually is one of the following integer values: +.B 0 +(default), +.B 100 +(JS 1.0), +.B 110 +(JS 1.1), +.B 120 +(JS 1.2), +.B 130 +(JS 1.3), +.B 140 +(JS 1.4), +.B 148 +(ECMA-3), +.B 150 +(JS 1.5), +.B 160 +(JS 1.6). +.SS Script Execution +.TP 8 +.BI -e " script" +Command-line passed JavaScript script to execute. +This is executed immediately during command +line parsing, so specify it after +.B "Compile-Time Options" +and +.BR "Run-Time Options" . +.TP 7 +.BI -f " scriptfile" +Externally passed JavaScript script to execute. +This is executed immediately during command +line parsing, so specify it after +.B "Compile-Time Options" +and +.BR "Run-Time Options" . +.SH ARGUMENTS +.TP 8 +.RI scriptfile +Externally passed JavaScript script to execute. +This is executed after command line parsing +(and this way after scripts of options +.BR -e " and " -f +were executed. +This additional way of executing an external JavaScript +script exists to especially support Unix "shebang" +style scripts. +.TP 8 +.IR scriptarg +Zero or more arguments which are passed to the executed +.IR scriptfile . +They are available in the script through the global +array object +.BR arguments . +.SH SEE ALSO +.BR js ( 3 ) +.PP +.RS 0 +http://www.mozilla.org/js/spidermonkey/ +.RE +.RS 0 +http://www.ossp.org/pkg/lib/js/ +.RE +.SH AUTHOR +The author of the +.B Mozilla JavaScript +language implementation ("SpiderMonkey") is the +.IR "Mozilla Foundation" . +This manual page was written by +.I Ralf S. Engelschall +for the +.B OSSP js +distribution of +.BR "Mozilla JavaScript" . Index: ossp-pkg/js/js.3 RCS File: /v/ossp/cvs/ossp-pkg/js/js.3,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/js/js.3,v' | diff -u /dev/null - -L'ossp-pkg/js/js.3' 2>/dev/null --- ossp-pkg/js/js.3 +++ - 2024-05-10 08:38:19.339070089 +0200 @@ -0,0 +1,35 @@ +.TH JS 3 "22 July 2006" +.SH NAME +.BR libjs " - Mozilla JavaScript C API" +.SH SYNOPSIS +.RS 0 +.B cc `pkg-config --cflags js` -o foo foo.c `pkg-config --libs js` +.SH DESCRIPTION +The Mozilla JavaScript C API +is the programmatic interface to the +.B Mozilla JavaScript +language engine ("SpiderMonkey"). +For the complete reference documenation of the C API please see +the following URL: +.PP +.B http://developer.mozilla.org/en/docs/JSAPI_Reference +.SH SEE ALSO +.BR js ( 1 ) +.PP +.RS 0 +http://www.mozilla.org/js/spidermonkey/ +.RE +.RS 0 +http://www.ossp.org/pkg/lib/js/ +.RE +.SH AUTHOR +The author of the +.B Mozilla JavaScript +language implementation ("SpiderMonkey") is the +.IR "Mozilla Foundation" . +This manual page was written by +.I Ralf S. Engelschall +for the +.B OSSP js +distribution of +.BR "Mozilla JavaScript" .