Annotation of clock/install.js.in, revision 1.1

1.1     ! petejc      1: /* -*- Mode: Javascript; tab-width: 2; c-basic-offset: 2; -*-
        !             2:  * 
        !             3:  *
        !             4:  * The contents of this file are subject to the Mozilla Public
        !             5:  * License Version 1.1 (the "License"); you may not use this file
        !             6:  * except in compliance with the License. You may obtain a copy of
        !             7:  * the License at http://www.mozilla.org/MPL/
        !             8:  *
        !             9:  * Software distributed under the License is distributed on an "AS
        !            10:  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
        !            11:  * implied. See the License for the specific language governing
        !            12:  * rights and limitations under the License.
        !            13:  *
        !            14:  * The Original Code is jslib team code.
        !            15:  * The Initial Developer of the Original Code is jslib team.
        !            16:  *
        !            17:  * Portions created by Mozdev Group, Inc. are
        !            18:  * Copyright (C) 2003 Mozdev Group, Inc.  All
        !            19:  * Rights Reserved.
        !            20:  *
        !            21:  * Original Author: Pete Collins <pete@mozdev.org>
        !            22:  * Contributor(s):
        !            23:  *
        !            24:  *  $Id: install.js.in,v 1.1 2003/05/27 01:38:39 petejc Exp $
        !            25:  *  Last Edited by: $Author: petejc $
        !            26:  *  $Revision: 1.1 $
        !            27:  *  $Date: 2003/05/27 01:38:39 $
        !            28:  */
        !            29: 
        !            30: const G_VER             = "__VERSION__";
        !            31: const G_MSG             = "__CODENAME__ v"+G_VER;
        !            32: const G_NAME            = "__CODENAME__";
        !            33: const G_CHROME          = "Chrome";
        !            34: const G_USER            = "Current User";
        !            35: const G_RT              = "__CODENAME__";
        !            36: const G_CONTENT         = "content/";
        !            37: 
        !            38: const G_CHROME_DIR      = getFolder(G_USER, "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_DIR, G_RT), "");
        !            45: logComment("registerChrome: " + 
        !            46:             registerChrome(PACKAGE|CONTENT|DELAYED_CHROME, 
        !            47:                            getFolder(G_CHROME_DIR, G_RT), ""));
        !            48: 
        !            49: err = getLastError();
        !            50: 
        !            51: if (err==SUCCESS)
        !            52:     performInstall(); 
        !            53: else
        !            54:     cancelInstall(err);
        !            55: 

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