[Jslib] Re: jslib is a package
Eric Plaster
plaster@talkware.net
Thu, 31 May 2001 17:36:12 -0500
This is a multi-part message in MIME format.
--------------79B1F821D3CA7E146D97173F
Content-Type: multipart/alternative;
boundary="------------C0E76D9E6AB02E54054D1A7A"
--------------C0E76D9E6AB02E54054D1A7A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
This is great pete!
I would like to change one thing though. I set a variable SRC_DIR in the
Makerfile and use it in linkJslib, makeJslib, makeJslibJar. This way we
only have to change the Makefile for path stuff and the scripts should
never be touched.
I included patches for your review.
pete collins wrote:
> js lib is now a package that can be built in a number of ways.
>
> Please view the make file for the various targets.
>
> Here is a small example of how it can be used as a package.
>
> http://jslib.mozdev.org/installation.html
>
> We can start doing some real documentation when the lib gets rocking and
> rolling some more.
>
> --pete
--
----
Eric Plaster Universal Talkware Corp
Senior Software Engineer (612)843-6711
plaster@talkware.net http://www.talkware.net
--------------C0E76D9E6AB02E54054D1A7A
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>This is great pete!
<p>I would like to change one thing though. I set a variable SRC_DIR
in the Makerfile and use it in linkJslib, makeJslib, makeJslibJar.
This way we only have to change the Makefile for path stuff and the scripts
should never be touched.
<p>I included patches for your review.
<p>pete collins wrote:
<blockquote TYPE=CITE>js lib is now a package that can be built in a number
of ways.
<p>Please view the make file for the various targets.
<p>Here is a small example of how it can be used as a package.
<p><a href="http://jslib.mozdev.org/installation.html">http://jslib.mozdev.org/installation.html</a>
<p>We can start doing some real documentation when the lib gets rocking
and
<br>rolling some more.
<p>--pete</blockquote>
<pre>--
----
Eric Plaster Universal Talkware Corp
Senior Software Engineer (612)843-6711
plaster@talkware.net <A HREF="http://www.talkware.net">http://www.talkware.net</A></pre>
</html>
--------------C0E76D9E6AB02E54054D1A7A--
--------------79B1F821D3CA7E146D97173F
Content-Type: text/plain; charset=us-ascii;
name="Makefile.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Makefile.patch"
Index: Makefile
===================================================================
RCS file: /cvs/jslib/Makefile,v
retrieving revision 1.6
diff -c -r1.6 Makefile
*** Makefile 2001/05/31 20:35:01 1.6
--- Makefile 2001/05/31 22:30:25
***************
*** 1,11 ****
! # set this to you mozilla bin dir
! export MOZ_DIST=/usr/src/MOZILLA/mozilla/dist/bin
!
! # code name for this project
export CODE_NAME=jslib
-
- # parent dir of bundled sources
export PACKAGE_NAME=libraries
all:
@scripts/makeJslibJar;
--- 1,9 ----
! export MOZ_DIST=/usr/src/mozilla/dist/bin
export CODE_NAME=jslib
export PACKAGE_NAME=libraries
+
+ # this is the directory in which is jslib
+ export SRC_DIR=/usr/src
all:
@scripts/makeJslibJar;
--------------79B1F821D3CA7E146D97173F
Content-Type: text/plain; charset=us-ascii;
name="linkJslib.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="linkJslib.patch"
Index: linkJslib
===================================================================
RCS file: /cvs/jslib/scripts/linkJslib,v
retrieving revision 1.1
diff -c -r1.1 linkJslib
*** linkJslib 2001/05/29 20:21:10 1.1
--- linkJslib 2001/05/31 22:30:57
***************
*** 2,23 ****
CONTAINER='libraries';
CVSMOD='jslib';
- SRCDIR=/usr/src;
cd $MOZ_DIST/chrome;
! if test -f $SRCDIR/$CVSMOD/installed-chrome.orig
then
! cat $SRCDIR/$CVSMOD/installed-chrome.orig > installed-chrome.txt;
else
! printf "$SRCDIR/$CVSMOD/installed-chrome.orig doesn't exist\n";
exit;
fi
cd $MOZ_DIST/chrome/;
! ln -s $SRCDIR/$CVSMOD/$CONTAINER $CVSMOD;
printf "finished creating sym links for $CVSMOD\n\n";
--- 2,22 ----
CONTAINER='libraries';
CVSMOD='jslib';
cd $MOZ_DIST/chrome;
! if test -f $SRC_DIR/$CVSMOD/installed-chrome.orig
then
! cat $SRC_DIR/$CVSMOD/installed-chrome.orig > installed-chrome.txt;
else
! printf "$SRC_DIR/$CVSMOD/installed-chrome.orig doesn't exist\n";
exit;
fi
cd $MOZ_DIST/chrome/;
! ln -s $SRC_DIR/$CVSMOD/$CONTAINER $CVSMOD;
printf "finished creating sym links for $CVSMOD\n\n";
--------------79B1F821D3CA7E146D97173F
Content-Type: text/plain; charset=us-ascii;
name="makeJslib.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="makeJslib.patch"
Index: makeJslib
===================================================================
RCS file: /cvs/jslib/scripts/makeJslib,v
retrieving revision 1.3
diff -c -r1.3 makeJslib
*** makeJslib 2001/05/30 19:15:03 1.3
--- makeJslib 2001/05/31 22:31:17
***************
*** 4,13 ****
# just adjust the paths below to suit your needs
# --pete
! # Edit this path this is where
! # you finished .xpi file will be installed
! INS_DIR=/usr/src/${CODE_NAME}/www/xpi;
DIRNAME=${PACKAGE_NAME};
printf "\nCreating xpi for ${CODE_NAME}\n\n";
--- 4,12 ----
# just adjust the paths below to suit your needs
# --pete
! # DO NOT EDIT BELOW THIS LINE
! INS_DIR=${SRC_DIR}/${CODE_NAME}/www/xpi;
DIRNAME=${PACKAGE_NAME};
printf "\nCreating xpi for ${CODE_NAME}\n\n";
--------------79B1F821D3CA7E146D97173F
Content-Type: text/plain; charset=us-ascii;
name="makeJslibJar.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="makeJslibJar.patch"
Index: makeJslibJar
===================================================================
RCS file: /cvs/jslib/scripts/makeJslibJar,v
retrieving revision 1.1
diff -c -r1.1 makeJslibJar
*** makeJslibJar 2001/05/29 20:21:10 1.1
--- makeJslibJar 2001/05/31 22:31:28
***************
*** 4,14 ****
# just adjust the paths below to suit your needs
# --pete
! # Edit this path this is where
! # you finished .xpi file will be installed
!
! INS_DIR=/usr/src/${CODE_NAME}/www/xpi;
printf "\nCreating xpi for ${CODE_NAME}\n\n";
--- 4,12 ----
# just adjust the paths below to suit your needs
# --pete
! # DO NOT EDIT BELOW THIS LINE
! INS_DIR=${SRC_DIR}/${CODE_NAME}/www/xpi;
printf "\nCreating xpi for ${CODE_NAME}\n\n";
--------------79B1F821D3CA7E146D97173F--