Annotation of aphrodite/aphrodite/install.js, revision 1.7

1.6       petejc      1: /* -*- Mode: Javascript; tab-width: 2; c-basic-offset: 2; -*-
1.1       petejc      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:  *
1.6       petejc     22:  *  Doug Turner   <dougt@acm.org> 
                     23:  *  Pete Collins  <petejc@collab.net1.1       petejc     24:  */
1.6       petejc     25: 
                     26: const G_MSG             = "Aphrodite v0.06";
                     27: const G_NAME            = "Aphrodite";
                     28: const G_VER             = "0.06";
                     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);
1.1       petejc     39:  
1.6       petejc     40: var err = initInstall(G_MSG, G_NAME, G_VER); 
                     41: 
1.1       petejc     42: logComment("initInstall: " + err);
                     43: 
1.6       petejc     44: addDirectory("", G_RT,  getFolder(G_CHROME, G_RT),   "" );
1.1       petejc     45: 
1.7     ! petejc     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 );
1.1       petejc     49: 
                     50: err = getLastError();
                     51: if (err==SUCCESS)
                     52:     performInstall(); 
1.2       petejc     53: 
1.1       petejc     54: else
                     55:     cancelInstall(err);
                     56: 

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