Check-in Number:
|
5481 | |
Date: |
2006-Jul-23 10:00:43 (local)
2006-Jul-23 08:00:43 (UTC) |
User: | rse |
Branch: | |
Comment: |
provide js-config script |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/js/.cvsignore 1.2 -> 1.3
--- .cvsignore 2006/07/22 13:47:37 1.2
+++ .cvsignore 2006/07/23 08:00:43 1.3
@@ -10,6 +10,7 @@
libtool
ltmain.sh
shtool
+js-config.sh
js.pc
js
jscpucfg
|
|
ossp-pkg/js/Makefile.in 1.18 -> 1.19
--- Makefile.in 2006/07/22 20:41:30 1.18
+++ Makefile.in 2006/07/23 08:00:43 1.19
@@ -183,7 +183,7 @@
src/jsopcode.h src/jsopcode.c: src/jsopcode.tbl
.PHONY: install
-install:
+install: all
$(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
@@ -195,6 +195,7 @@
$(SHTOOL) install -c -m 644 js.3 $(DESTDIR)$(mandir)/man3/
$(SHTOOL) install -c -m 644 $(LIB_HDRS) $(DESTDIR)$(includedir)/js/
@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(LIB_NAME) $(DESTDIR)$(libdir)/
+ $(SHTOOL) install -c -m 755 js-config.sh $(DESTDIR)$(bindir)/js-config
$(SHTOOL) install -c -m 644 js.pc $(DESTDIR)$(libdir)/pkgconfig/
@if [ ".$(WITH_PERL)" = ".yes" ]; then \
(cd src/perlconnect; $(MAKE) $(MFLAGS) install DESTDIR=$(DESTDIR)); \
@@ -213,7 +214,7 @@
distclean: clean
-$(RM) config.log config.status config.cache
- -$(RM) Makefile config.h js.pc
+ -$(RM) Makefile config.h js.pc js-config.sh
-$(RM) libtool
@if [ ".$(WITH_PERL)" = ".yes" ]; then \
(cd src/perlconnect; $(MAKE) $(MFLAGS) distclean || $(TRUE); $(RM) -f Makefile.PL Makefile Makefile.old); \
|
|
ossp-pkg/js/TODO 1.1 -> 1.2
--- TODO 2006/07/22 19:43:48 1.1
+++ TODO 2006/07/23 08:00:43 1.2
@@ -10,6 +10,7 @@
TODO
- nothing known at this point.
+ - manpage js.1 fixme
CANDO
|
|
ossp-pkg/js/configure.ac 1.10 -> 1.11
--- configure.ac 2006/07/22 20:04:20 1.10
+++ configure.ac 2006/07/23 08:00:43 1.11
@@ -28,9 +28,10 @@
AC_PREREQ(2.60)
AC_INIT
-V=`./shtool version -l txt -d short VERSION`
+JS_VERSION=`./shtool version -l txt -d short VERSION`
$ac_confdir/shtool echo -e \
- "Configuring %BOSSP js%b (Mozilla JavaScript Engine), version %B${V}%b"
+ "Configuring %BOSSP js%b (Mozilla JavaScript Engine), version %B${JS_VERSION}%b"
+AC_SUBST(JS_VERSION)
AC_PROG_MAKE_SET
AC_PROG_CC
@@ -129,6 +130,6 @@
AC_PROG_LIBTOOL
AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_FILES([Makefile js.pc src/perlconnect/Makefile.PL])
+AC_CONFIG_FILES([Makefile js.pc js-config.sh src/perlconnect/Makefile.PL])
AC_OUTPUT
|
|
ossp-pkg/js/js-config.1 -> 1.1
*** /dev/null Sat Nov 23 01:01:30 2024
--- - Sat Nov 23 01:01:39 2024
***************
*** 0 ****
--- 1,67 ----
+ .TH JS-CONFIG 1 "22 July 2006"
+ .SH NAME
+ .BR js-config " - Mozilla JavaScript C API Configuration Query Utility"
+ .SH SYNOPSIS
+ .B js-config
+ .RB [ --help ]
+ .RB [ --version ]
+ .RB [ --prefix ]
+ .RB [ --exec-prefix ]
+ .RB [ --bindir ]
+ .RB [ --libdir ]
+ .RB [ --includedir ]
+ .RB [ --mandir ]
+ .RB [ --datadir ]
+ .RB [ --acdir ]
+ .RB [ --cppflags ]
+ .RB [ --cflags ]
+ .RB [ --ldflags ]
+ .RB [ --libs ]
+ .SH DESCRIPTION
+ The Mozilla JavaScript C API Configuration Query Utility
+ .B js-config
+ is a command line utility
+ for querying various build-time parameters when
+ linking the
+ .B Mozilla JavaScript
+ language engine ("SpiderMonkey"),
+ as provided by the
+ .B OSSP js
+ distribution, into own applications.
+ .PP
+ For platforms where
+ .BR pkg-config ( 1 )
+ is available one can use this as an alternative, too.
+ The advantage of
+ .BR js-config ( 1 )
+ is that it is a stand-alone shell script without
+ any dependencies and already ships with the
+ .B OSSP js
+ distribution.
+ .SH EXAMPLES
+ .RS 0
+ cc `js-config --cppflags` -o foo foo.c `js-config --ldflags --libs`
+ .RE
+ .SH SEE ALSO
+ .BR js ( 1 ),
+ .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
+ .I Brendan Eich
+ from the
+ .IR "Mozilla Foundation" .
+ This manual page was written by
+ .I Ralf S. Engelschall
+ for the
+ .B OSSP js
+ distribution of
+ .BR "Mozilla JavaScript" .
|
|
ossp-pkg/js/js-config.sh.in -> 1.1
*** /dev/null Sat Nov 23 01:01:30 2024
--- - Sat Nov 23 01:01:39 2024
***************
*** 0 ****
--- 1,138 ----
+ #!/bin/sh
+ ##
+ ## OSSP js - JavaScript Engine
+ ## Copyright (c) 1998-2006 Mozilla <http://www.mozilla.org/>
+ ##
+ ## This file is part of OSSP js, a distribution of the Mozilla JavaScript
+ ## reference implementation, which can found at http://www.ossp.org/pkg/lib/js/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## js-config.in: library build utility
+ ##
+
+ DIFS='
+ '
+
+ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+
+ js_prefix="$prefix"
+ js_exec_prefix="$exec_prefix"
+ js_bindir="@bindir@"
+ js_libdir="@libdir@"
+ js_includedir="@includedir@"
+ js_mandir="@mandir@"
+ js_datarootdir="@datarootdir@"
+ js_datadir="@datadir@"
+ js_acdir="@datadir@/aclocal"
+ js_libs="@LIBS@"
+ js_version="@JS_VERSION@"
+
+ help=no
+ version=no
+
+ usage="js-config"
+ usage="$usage [--help] [--version]"
+ usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]"
+ usage="$usage [--cppflags] [--cflags] [--ldflags] [--libs]"
+ if [ $# -eq 0 ]; then
+ echo "js-config:Error: Invalid option" 1>&2
+ echo "js-config:Usage: $usage" 1>&2
+ exit 1
+ fi
+ output=''
+ all=no
+ prev=''
+ OIFS="$IFS" IFS="$DIFS"
+ for option
+ do
+ if [ ".$prev" != . ]; then
+ eval "$prev=\$option"
+ prev=''
+ continue
+ fi
+ case "$option" in
+ -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg='' ;;
+ esac
+ case "$option" in
+ --help|-h)
+ echo "Usage: $usage"
+ exit 0
+ ;;
+ --version|-v)
+ echo "OSSP js $js_version"
+ exit 0
+ ;;
+ --all)
+ all=yes
+ ;;
+ --prefix)
+ output="$output $js_prefix"
+ ;;
+ --exec-prefix)
+ output="$output $js_exec_prefix"
+ ;;
+ --bindir)
+ output="$output $js_bindir"
+ ;;
+ --libdir)
+ output="$output $js_libdir"
+ ;;
+ --includedir)
+ output="$output $js_includedir"
+ ;;
+ --mandir)
+ output="$output $js_mandir"
+ ;;
+ --datadir)
+ output="$output $js_datadir"
+ ;;
+ --acdir)
+ output="$output $js_acdir"
+ ;;
+ --cppflags)
+ output="$output -DXP_UNIX -I$js_includedir/js"
+ ;;
+ --cflags)
+ : # none
+ ;;
+ --ldflags)
+ output="$output -L$js_libdir"
+ ;;
+ --libs)
+ output="$output -ljs $js_libs"
+ ;;
+ * )
+ echo "js-config:Error: Invalid option" 1>&2
+ echo "js-config:Usage: $usage" 1>&2
+ exit 1;
+ ;;
+ esac
+ done
+ IFS="$OIFS"
+ if [ ".$prev" != . ]; then
+ echo "js-config:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2
+ exit 1
+ fi
+ if [ ".$output" != . ]; then
+ echo $output
+ fi
+
|
|
ossp-pkg/js/js.1 -> 1.6
*** /dev/null Sat Nov 23 01:01:30 2024
--- - Sat Nov 23 01:01:39 2024
***************
*** 0 ****
--- 1,165 ----
+ .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????
+ FIXME
+ .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 ),
+ .BR js-config ( 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
+ .I Brendan Eich
+ from the
+ .IR "Mozilla Foundation" .
+ This manual page was written by
+ .I Ralf S. Engelschall
+ for the
+ .B OSSP js
+ distribution of
+ .BR "Mozilla JavaScript" .
|
|
ossp-pkg/js/js.3 -> 1.4
*** /dev/null Sat Nov 23 01:01:30 2024
--- - Sat Nov 23 01:01:39 2024
***************
*** 0 ****
--- 1,46 ----
+ .TH JS 3 "22 July 2006"
+ .SH NAME
+ .BR libjs " - Mozilla JavaScript C API"
+ .SH SYNOPSIS
+ .RS 0
+ .B cc `js-config --cppflags` -o foo foo.c `js-config --ldflags --libs`
+ .RE
+ .RS 0
+ .B cc `pkg-config --cflags js` -o foo foo.c `pkg-config --libs js`
+ .RE
+ .SH DESCRIPTION
+ The Mozilla JavaScript C API
+ is the programmatic interface to the
+ .B Mozilla JavaScript
+ language engine ("SpiderMonkey").
+ For the complete reference documentation of the Mozilla JavaScript C API please see
+ the following online documents:
+ .TP 8
+ .I JS Embedder's Guide
+ http://www.mozilla.org/js/spidermonkey/apidoc/jsguide.html
+ .TP 8
+ .I JS Embedder's Reference
+ http://www.mozilla.org/js/spidermonkey/apidoc/complete-frameset.html
+ .SH SEE ALSO
+ .BR js-config ( 1 ),
+ .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
+ .I Brendan Eich
+ from the
+ .IR "Mozilla Foundation" .
+ This manual page was written by
+ .I Ralf S. Engelschall
+ for the
+ .B OSSP js
+ distribution of
+ .BR "Mozilla JavaScript" .
|
|
ossp-pkg/js/js.pc.in 1.3 -> 1.4
--- js.pc.in 2006/07/22 20:37:02 1.3
+++ js.pc.in 2006/07/23 08:00:43 1.4
@@ -4,7 +4,7 @@
includedir=${prefix}/include
Name: OSSP js
-Description: JavaScript Engine
-Version: @version@
+Description: Mozilla JavaScript Engine
+Version: @JS_VERSION@
Libs: -L${libdir} -ljs @LIBS@
Cflags: -DXP_UNIX -I${includedir}/js
|
|