File:  [mozdev] / aphrodite / aphrodite / install.js
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Mon Apr 15 04:16:39 2002 UTC (16 years, 7 months ago) by john
Branches: MAIN
CVS tags: HEAD
Update version number

    1: /* -*- Mode: Javascript; tab-width: 2; c-basic-offset: 2; -*-
    2:  * 
    3:  * The contents of this file are subject to the Netscape Public
    4:  * License Version 1.1 (the "License"); you may not use this file
    5:  * except in compliance with the License. You may obtain a copy of
    6:  * the License at http://www.mozilla.org/NPL/
    7:  *
    8:  * Software distributed under the License is distributed on an "AS
    9:  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   10:  * implied. See the License for the specific language governing
   11:  * rights and limitations under the License.
   12:  *
   13:  * The Original Code is mozilla.org code.
   14:  *
   15:  * The Initial Developer of the Original Code is Netscape
   16:  * Communications Corporation.  Portions created by Netscape are
   17:  * Copyright (C) 1998 Netscape Communications Corporation. All
   18:  * Rights Reserved.
   19:  *
   20:  * Contributor(s): 
   21:  *
   22:  *  Doug Turner   <dougt@acm.org> 
   23:  *  Pete Collins  <petejc@collab.net> 
   24:  */
   25: 
   26: const G_MSG             = "Aphrodite v0.6";
   27: const G_NAME            = "Aphrodite";
   28: const G_VER             = "0.6";
   29: const G_CHROME          = "Chrome";
   30: const G_RT              = "aphrodite";
   31: const G_CONTENT         = "content/";
   32: const G_SKIN            = "skin/";
   33: const G_LOCALE          = "locale/en-US/";
   34: 
   35: const G_INST_TXT        = "installed-chrome.txt";
   36: const G_JAR_FILE        = "aphrodite.jar";
   37: 
   38: const G_CHROME_DIR      = getFolder(G_CHROME);
   39:  
   40: var err = initInstall(G_MSG, G_NAME, G_VER); 
   41: 
   42: logComment("initInstall: " + err);
   43: 
   44: addDirectory("", G_RT,  getFolder(G_CHROME, G_RT), 	"" );
   45: 
   46: registerChrome( PACKAGE|DELAYED_CHROME, getFolder(G_CHROME, G_RT), G_CONTENT );
   47: registerChrome( PACKAGE|DELAYED_CHROME, getFolder(G_CHROME, G_RT), G_SKIN );
   48: registerChrome( PACKAGE|DELAYED_CHROME, getFolder(G_CHROME, G_RT), G_LOCALE );
   49: 
   50: err = getLastError();
   51: if (err==SUCCESS)
   52:     performInstall(); 
   53: 
   54: else
   55:     cancelInstall(err);
   56: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>