2 # Parent 4732a0e5d22bc7e5c1f1ace7a182d537d9cc2c6a
3 Add major version to shell and js-config filenames.
4 Author: Rico Tzschichholz <ricotz@ubuntu.com>
6 Last-Update: 2014-10-29
9 diff --git a/js/src/configure b/js/src/configure
10 --- a/js/src/configure
11 +++ b/js/src/configure
12 @@ -1696,8 +1696,13 @@
13 MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"`
14 IS_ALPHA=`echo $MOZILLA_VERSION | grep '[ab]'`
16 +if test -n "$JS_STANDALONE"; then
17 +JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
18 +JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
21 JS_CONFIG_NAME=js-config
25 if test -n "$IS_ALPHA"; then
27 diff --git a/js/src/configure.in b/js/src/configure.in
28 --- a/js/src/configure.in
29 +++ b/js/src/configure.in
30 @@ -234,16 +234,13 @@ MOZJS_MINOR_VERSION=`echo $MOZILLA_VERSI
31 MOZJS_PATCH_VERSION=`echo $MOZILLA_VERSION | sed "s|^[0-9]*\.[0-9]*[^0-9]*||"`
32 IS_ALPHA=`echo $MOZILLA_VERSION | grep '[ab]'`
34 -dnl XXX in a temporary bid to avoid developer anger at renaming files
35 -dnl XXX before "js" symlinks exist, don't change names.
37 -dnl if test -n "$JS_STANDALONE"; then
38 -dnl JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
39 -dnl JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
41 +if test -n "$JS_STANDALONE"; then
42 +JS_SHELL_NAME=js$MOZJS_MAJOR_VERSION
43 +JS_CONFIG_NAME=js$MOZJS_MAJOR_VERSION-config
46 JS_CONFIG_NAME=js-config
51 if test -n "$IS_ALPHA"; then
53 diff -r 80a9e64d75f5 js/src/Makefile.in
54 --- a/js/src/Makefile.in Wed Jun 25 15:11:42 2014 +0200
55 +++ b/js/src/Makefile.in Sat Jul 05 14:08:38 2014 +0200
57 SCRIPTS = $(JS_CONFIG_NAME)
58 SDK_BINARY = $(JS_CONFIG_NAME)
60 +$(JS_CONFIG_NAME): js-config
63 $(LIBRARY_NAME).pc: js.pc