[Zope-CVS] CVS: Packages/Moztop - install.js.in:1.1 install.js.jar.in:1.1 .cvsignore:1.7 Makefile:1.9 install.js:NONE

Stephan Richter srichter@cbu.edu
Sat, 22 Mar 2003 22:24:55 -0500


Update of /cvs-repository/Packages/Moztop
In directory cvs.zope.org:/tmp/cvs-serv24164

Modified Files:
	.cvsignore Makefile 
Added Files:
	install.js.in install.js.jar.in 
Removed Files:
	install.js 
Log Message:
Improved options for making distributions a bit. You can now create JAR-
and directory-based distros.


=== Added File Packages/Moztop/install.js.in ===
/*****************************************************************************
*
* Copyright (c) 2002, 2003 Zope Corporation and Contributors.
* All Rights Reserved.
*
* This software is subject to the provisions of the Zope Public License,
* Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
* WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
* FOR A PARTICULAR PURPOSE.
*
******************************************************************************
install.js template for directory based XPI-Package distributions.

$Id: install.js.in,v 1.1 2003/03/23 03:24:54 srichter Exp $

******************************************************************************/
uninstall("Moztop");
initInstall("Moztop", "/Zope3Team/Moztop", "0.4");

var folder = getFolder("Chrome");
setPackageFolder(folder);

addDirectory("moztop");

var regfolder = getFolder(folder, 'moztop');
registerChrome(Install.CONTENT | DELAYED_CHROME, regfolder, "content");
registerChrome(Install.LOCALE | DELAYED_CHROME, regfolder, "locale");
registerChrome(Install.SKIN | DELAYED_CHROME, regfolder, "skin");

var error = getLastError();

if (error == SUCCESS){
  logComment('Installing Moztop.');
  performInstall();
  refreshPlugins();
} else {
  logComment('Error installing Moztop: ' + error);
  cancelInstall();
}


=== Added File Packages/Moztop/install.js.jar.in ===
/*****************************************************************************
*
* Copyright (c) 2002, 2003 Zope Corporation and Contributors.
* All Rights Reserved.
*
* This software is subject to the provisions of the Zope Public License,
* Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
* WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
* FOR A PARTICULAR PURPOSE.
*
******************************************************************************
install.js template for JAR based XPI-Package distributions.

$Id: install.js.jar.in,v 1.1 2003/03/23 03:24:54 srichter Exp $

******************************************************************************/
uninstall("Moztop");
initInstall("Moztop", "/Zope3Team/Moztop", "0.4");

var folder = getFolder("Chrome");
setPackageFolder(folder);

addFile("moztop.jar");

var regfolder = getFolder(folder,'moztop.jar');
registerChrome(Install.CONTENT | DELAYED_CHROME, regfolder,"content");
registerChrome(Install.LOCALE | DELAYED_CHROME, regfolder,"locale");
registerChrome(Install.SKIN | DELAYED_CHROME, regfolder,"skin");

var error = getLastError();

if (error == SUCCESS){
  logComment('Installing Moztop.');
  performInstall();
  refreshPlugins();
} else {
  logComment('Error installing Moztop: ' + error);
  cancelInstall();
}


=== Packages/Moztop/.cvsignore 1.6 => 1.7 ===
--- Packages/Moztop/.cvsignore:1.6	Sat Mar 15 11:29:20 2003
+++ Packages/Moztop/.cvsignore	Sat Mar 22 22:24:54 2003
@@ -1,4 +1,5 @@
 moztop.jar
 moztop.xpi
+install.js
 *~
 


=== Packages/Moztop/Makefile 1.8 => 1.9 ===
--- Packages/Moztop/Makefile:1.8	Thu Mar 20 09:06:29 2003
+++ Packages/Moztop/Makefile	Sat Mar 22 22:24:54 2003
@@ -11,13 +11,27 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-# Zope XPI Installer Makefile
+# Moztop Makefile
 #
+# o all: Make an JAR-based XPI distribution (installer).
+#
+# o build-xpi-distro: Remove CVS-specific files/directories before building 
+#                     the distribution (installer).
+# 
+# o build-dir-xpi: Make an directory-based XPI distribution (installer). 
+# 
+# o build-dir-xpi-distro: Remove CVS-specific files/directories before building 
+#                     the directory-based distribution (installer).
+# 
+# o run: Execute Moztop. JSConsole will be automatically started for debugging.
+# 
 # $Id$
+#
+##############################################################################
 ZIP=zip
 JAR_NAME=moztop.jar
 XPI_NAME=moztop.xpi
-MOZILLA=/opt/moz-nightly//mozilla -jsconsole
+MOZILLA=/opt/mozilla/mozilla -jsconsole
 
 all: 	build-jar build-xpi
 
@@ -25,9 +39,16 @@
 	$(ZIP) -r $(JAR_NAME) moztop
 
 build-xpi:
+	cp install.js.jar.in install.js
 	$(ZIP) -r $(XPI_NAME) $(JAR_NAME) install.js 
 
 build-xpi-distro: remove-cvs build-jar build-xpi
+
+build-dir-xpi:
+	cp install.js.in install.js
+	$(ZIP) -r $(XPI_NAME) moztop install.js 
+
+build-dir-xpi-distro: remove-cvs build-dir-xpi
 
 remove-cvs:
 	find . -name "CVS" | xargs rm -f

=== Removed File Packages/Moztop/install.js ===