Bladeren bron

Resolves: #237356
Summary: Move DS Admin Code into Admin Server (Comment #9)
Description: Cleaning up unused code

Noriko Hosoi 18 jaren geleden
bovenliggende
commit
53c8d0a8f6
3 gewijzigde bestanden met toevoegingen van 0 en 787 verwijderingen
  1. 0 225
      lib/libsi18n/acclanglist.c
  2. 0 451
      modules.awk
  3. 0 111
      modules.sh

+ 0 - 225
lib/libsi18n/acclanglist.c

@@ -1,225 +0,0 @@
-/** BEGIN COPYRIGHT BLOCK
- * This Program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation; version 2 of the License.
- * 
- * This Program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License along with
- * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA.
- * 
- * In addition, as a special exception, Red Hat, Inc. gives You the additional
- * right to link the code of this Program with code not covered under the GNU
- * General Public License ("Non-GPL Code") and to distribute linked combinations
- * including the two, subject to the limitations in this paragraph. Non-GPL Code
- * permitted under this exception must only link to the code of this Program
- * through those well defined interfaces identified in the file named EXCEPTION
- * found in the source code files (the "Approved Interfaces"). The files of
- * Non-GPL Code may instantiate templates or use macros or inline functions from
- * the Approved Interfaces without causing the resulting work to be covered by
- * the GNU General Public License. Only Red Hat, Inc. may make changes or
- * additions to the list of Approved Interfaces. You must obey the GNU General
- * Public License in all respects for all of the Program code and other code used
- * in conjunction with the Program except the Non-GPL Code covered by this
- * exception. If you modify this file, you may extend this exception to your
- * version of the file, but you are not obligated to do so. If you do not wish to
- * provide this exception without modification, you must delete this exception
- * statement from your version and license this file solely under the GPL without
- * exception. 
- * 
- * 
- * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
- * Copyright (C) 2005 Red Hat, Inc.
- * All rights reserved.
- * END COPYRIGHT BLOCK **/
-
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-#include <stdlib.h>
-
-#include "i18n.h"
-
-
-/*
- *      Accept-Language = "Accept-Language" ":"
- *                        1#( language-range [ ";" "q" "=" qvalue ] )
- *      language-range  = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
- *
- *      NLS_AccLangList() assumes that "Accept-Language:" has already
- *      been stripped off. It takes as input
- * 
- *      1#( ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) [ ";" "q" "=" qvalue ] )
- *
- *      and returns a list of languages, ordered by qvalues, in
- *      the array NLS_ACCEPT_LANGUAGE_LIST. 
- *      
- *      If there are to many languages (>NLS_MAX_ACCEPT_LANGUAGE) the excess
- *      is ignored. If the language-range is too long (>NLS_MAX_ACCEPT_LENGTH),
- *      the language-range is ignored. In these cases, NLS_AccLangList()
- *      will quietly return, perhaps with numLang = 0. numLang is
- *      returned by the function.  
- */
-
-
-static size_t
-AcceptLangList(const char* AcceptLanguage,
-               ACCEPT_LANGUAGE_LIST AcceptLanguageList)
-{
-  char* input;
-  char* cPtr;
-  char* cPtr1;
-  char* cPtr2;
-  int i;
-  int j;
-  int countLang = 0;
-  
-  input = strdup(AcceptLanguage);
-  if (input == (char*)NULL){
-	  return 0;
-  }
-
-  cPtr1 = input-1;
-  cPtr2 = input;
-
-  /* put in standard form */
-  while (*(++cPtr1)) {
-    if      (isalpha(*cPtr1))  *cPtr2++ = tolower(*cPtr1); /* force lower case */
-    else if (isspace(*cPtr1));                             /* ignore any space */
-    else if (*cPtr1=='-')      *cPtr2++ = '_';             /* "-" -> "_"       */
-    else if (*cPtr1=='*');                                 /* ignore "*"       */
-    else                       *cPtr2++ = *cPtr1;          /* else unchanged   */
-  }
-  *cPtr2 = '\0';
-
-  countLang = 0;
-
-  if (strchr(input,';')) {
-    /* deal with the quality values */
-
-    float qvalue[MAX_ACCEPT_LANGUAGE];
-    float qSwap;
-    float bias = 0.0f;
-    char* ptrLanguage[MAX_ACCEPT_LANGUAGE];
-    char* ptrSwap;
-
-    cPtr = strtok(input,",");
-    while (cPtr) {
-      qvalue[countLang] = 1.0f;
-      if ((cPtr1 = strchr(cPtr,';'))) {
-        sscanf(cPtr1,";q=%f",&qvalue[countLang]);
-        *cPtr1 = '\0';
-      }
-      if (strlen(cPtr)<MAX_ACCEPT_LENGTH) {     /* ignore if too long */
-        qvalue[countLang] -= (bias += 0.0001f); /* to insure original order */
-        ptrLanguage[countLang++] = cPtr;
-        if (countLang>=MAX_ACCEPT_LANGUAGE) break; /* quit if too many */
-      }
-      cPtr = strtok(NULL,",");
-    }
-
-    /* sort according to decending qvalue */
-    /* not a very good algorithm, but count is not likely large */
-    for ( i=0 ; i<countLang-1 ; i++ ) {
-      for ( j=i+1 ; j<countLang ; j++ ) {
-        if (qvalue[i]<qvalue[j]) {
-          qSwap     = qvalue[i];
-          qvalue[i] = qvalue[j];
-          qvalue[j] = qSwap;
-          ptrSwap        = ptrLanguage[i];
-          ptrLanguage[i] = ptrLanguage[j];
-          ptrLanguage[j] = ptrSwap;
-        }
-      }
-    }
-    for ( i=0 ; i<countLang ; i++ ) {
-      strcpy(AcceptLanguageList[i],ptrLanguage[i]);
-    }
-
-  } else {
-    /* simple case: no quality values */
-
-    cPtr = strtok(input,",");
-    while (cPtr) {
-      if (strlen(cPtr)<MAX_ACCEPT_LENGTH) {        /* ignore if too long */
-        strcpy(AcceptLanguageList[countLang++],cPtr);
-        if (countLang>=MAX_ACCEPT_LANGUAGE) break; /* quit if too many */
-      }
-      cPtr = strtok(NULL,",");
-    }
-  }
-
-  free(input);
-
-  return countLang;
-}
-
-/*
- *   Get prioritized locale list from NLS_AcceptLangList 
- *      
- *   Add additonal language to the list for fallback if locale 
- *   name is language_region
- *
- */
-
-
-int
-XP_AccLangList(char* AcceptLanguage,
-               ACCEPT_LANGUAGE_LIST AcceptLanguageList)
-{
-	int i;
-	int n;
-	char *defaultLanguage = "en";
-	ACCEPT_LANGUAGE_LIST curLanguageList;
-	int index = 0;
-	char lang[3];
-	int k;
-
-	n = AcceptLangList(AcceptLanguage, curLanguageList);
-
-	if (n == 0)
-		return 0;
-
-	memset(lang, 0, 3);
-	for (i = 0; i < n; i++) {
-		if (*lang && (strncmp(lang, curLanguageList[i], 2) != 0)) {
-			/* add lang if current language is the last occurence in the list */
-			for (k = i+1; (k < n) && strncmp(curLanguageList[k],lang,2); k++);
-
-			if (k == n) {
-				strcpy(AcceptLanguageList[index++], lang);
-				*lang = '\0';
-			}
-		}
-
-		strcpy(AcceptLanguageList[index++], curLanguageList[i]);
-
-        /* Add current language for future appending.,make sure it's not on list */
-        if ((strlen(curLanguageList[i]) > 2) && (curLanguageList[i][2] == '_')) {
-		    strncpy(lang, curLanguageList[i], 2);
-			lang[sizeof(lang)-1] = 0;
-	        for (k = 0; (k < index) && strcmp(AcceptLanguageList[k], lang); k++);
-
-	        if (k != index)   lang[0] = '\0';
-        }
-	}
-
-	if (lang[0] != '\0')
-		strcpy(AcceptLanguageList[index++], lang);	/* add new lang */
-
-	/* Append defaultLanguage if it's not in the list */
-	for (i = 0; (i < index) && strcmp(AcceptLanguageList[i], defaultLanguage); i++);
-
-	if (i == index)
-		strcpy(AcceptLanguageList[index++], defaultLanguage);
-
-	return index;
-}

+ 0 - 451
modules.awk

@@ -1,451 +0,0 @@
-#
-# BEGIN COPYRIGHT BLOCK
-# This Program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; version 2 of the License.
-# 
-# This Program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-# 
-# You should have received a copy of the GNU General Public License along with
-# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
-# Place, Suite 330, Boston, MA 02111-1307 USA.
-# 
-# In addition, as a special exception, Red Hat, Inc. gives You the additional
-# right to link the code of this Program with code not covered under the GNU
-# General Public License ("Non-GPL Code") and to distribute linked combinations
-# including the two, subject to the limitations in this paragraph. Non-GPL Code
-# permitted under this exception must only link to the code of this Program
-# through those well defined interfaces identified in the file named EXCEPTION
-# found in the source code files (the "Approved Interfaces"). The files of
-# Non-GPL Code may instantiate templates or use macros or inline functions from
-# the Approved Interfaces without causing the resulting work to be covered by
-# the GNU General Public License. Only Red Hat, Inc. may make changes or
-# additions to the list of Approved Interfaces. You must obey the GNU General
-# Public License in all respects for all of the Program code and other code used
-# in conjunction with the Program except the Non-GPL Code covered by this
-# exception. If you modify this file, you may extend this exception to your
-# version of the file, but you are not obligated to do so. If you do not wish to
-# provide this exception without modification, you must delete this exception
-# statement from your version and license this file solely under the GPL without
-# exception. 
-# 
-# 
-# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
-# Copyright (C) 2005 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-#
-# modules.mk: defines rules for each module that any part of the systems 
-# will require in dependency lists.
-#
-# The current module will not be defined, you must have set the variable
-# MODULE before this file is included.
-
-
-NS_LIBDIR=$(BUILD_ROOT)/lib
-MCOM_LIBDIR=$(BUILD_ROOT)/lib
-HTTPD=$(BUILD_ROOT)/httpd
-PROXY=$(BUILD_ROOT)/proxy
-BATMAN=$(BUILD_ROOT)/batman
-MAIL=$(BUILD_ROOT)/mailserv2
-NEWS=$(BUILD_ROOT)/news
-CMS=$(BUILD_ROOT)/species
-ROGUE=$(BUILD_ROOT)/lw/rogue
-
-# ------------------------------- Modules --------------------------------
-
-
-ifneq ($(MODULE), LibRegex)
-LIBREGEX=regex
-LIBRARY regex $(NS_LIBDIR)/libregex
-endif
-
-ifneq ($(MODULE), LibBase)
-BASE=base $(LIBSI18N)
-BASE_SSL=base-ssl
-LIBRARY base $(NS_LIBDIR)/base
-endif
-
-ifneq ($(MODULE), LibAccess)
-LIBACCESS=access $(BASE) $(LIBSI18N)
-LIBRARY libaccess $(NS_LIBDIR)/libaccess
-endif
-
-ifneq ($(MODULE), LibLdapUtil)
-LIBLDAPU=ldapu $(BASE)
-LIBRARY libldapu $(NS_LIBDIR)/ldaputil
-endif
-
-ifneq ($(MODULE), LibHttpDaemon)
-HTTPDAEMON=httpdaemon
-HTTPDAEMON_SSL=httpdaemon-ssl
-LIBRARY libhttpdaemon $(NS_LIBDIR)/httpdaemon
-endif
-
-ifneq ($(MODULE), LibFrame)
-FRAME=frame $(BASE)
-FRAME_SSL=frame-ssl $(BASE_SSL)
-LIBRARY frame $(NS_LIBDIR)/frame
-endif
-
-ifneq ($(MODULE), LibProxy)
-LIBPROXY=libproxy
-LIBPROXY_SSL=libproxy-ssl
-LIBRARY libproxy $(NS_LIBDIR)/libproxy
-endif
-
-ifneq ($(MODULE), LibSNMP)
-LIBSNMP=libsnmp
-LIBSNMP_SSL=libsnmp-ssl
-LIBRARY libsnmp $(NS_LIBDIR)/libsnmp
-endif
-
-ifneq ($(MODULE), LibSAFs)
-SAFS=safs
-SAFS_SSL=safs-ssl
-LIBRARY safs $(NS_LIBDIR)/safs
-endif
-
-ifneq ($(MODULE), LibAR)
-LIBARES=ares
-LIBRARY libares
-endif
-
-ifneq ($(MODULE), CGIUtils)
-CGIUTILS=cgiutils
-LIBRARY cgiutils $(NS_LIBDIR)/cgiutils
-endif
-
-ifneq ($(MODULE), LibAdmin)
-LIBADMIN=admin
-LIBRARY admin $(NS_LIBDIR)/libadmin
-endif
-
-ifneq ($(MODULE), LibAdminUtil)
-#LIBADMINUTIL=adminutil
-LIBRARY adminutil $(NS_LIBDIR)/libadminutil
-endif
-
-ifneq ($(MODULE), LibCrypt)
-LIBCRYPT=crypt
-LIBRARY crypt $(NS_LIBDIR)/libcrypt
-endif
-
-ifneq ($(MODULE), LibMessages)
-LIBMESSAGES=messages
-LIBRARY messages $(NS_LIBDIR)/libmessages
-endif
-
-ifneq ($(MODULE), LibNSCore)
-LIBNSCORE=nscore
-LIBRARY nscore $(NS_LIBDIR)/libnscore
-endif
-
-ifneq ($(MODULE), LibMsgDisp)
-LIBNSCORE=msgdisp
-LIBRARY msgdisp $(NS_LIBDIR)/libmsgdisp
-endif
-
-ifneq ($(MODULE), LibMetaData)
-LIBNSCORE=metadata
-LIBRARY metadata $(NS_LIBDIR)/libmetadata
-endif
-
-ifneq ($(MODULE), LibIr)
-LIBNSCORE=ir
-LIBRARY ir $(NS_LIBDIR)/libir
-endif
-
-ifneq ($(MODULE), LibDocLdr)
-LIBNSCORE=docldr
-LIBRARY docldr $(NS_LIBDIR)/libdocldr
-endif
-
-ifneq ($(MODULE), LibVLdr)
-LIBNSCORE=vldr
-LIBRARY vldr $(NS_LIBDIR)/libvldr
-endif
-
-ifneq ($(MODULE), LibsI18N)
-LIBSI18N=si18n
-LIBRARY si18n $(NS_LIBDIR)/libsi18n
-endif
-
-ifneq ($(MODULE), LibINN)
-LIBINN=inn
-LIBRARY inn $(NS_LIBDIR)/libinn
-endif
-
-
-#ifeq ($(ARCH), WINNT)
-#ifneq ($(MODULE), LibNSPR)
-#ifeq ($(DEBUG), purify)
-#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX)
-#else
-#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX)
-#endif
-#NSPRDIR=nspr20
-#DISTLIB libnspr $(BUILD_ROOT)/$(NSPRDIR)
-#endif
-#else
-#ifneq ($(MODULE), LibNSPR)
-#ifeq ($(DEBUG), purify)
-#LIBNSPR=$(NSCP_DISTDIR)/lib/purelibnspr.$(LIB_SUFFIX) 
-#SHLIBNSPR=$(NSCP_DISTDIR)/lib/purelibnspr$(DLL_PRESUF).$(DLL_SUFFIX) 
-#else
-#LIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME).$(LIB_SUFFIX) 
-#SHLIBNSPR=$(NSCP_DISTDIR)/lib/$(NSPR_BASENAME)$(DLL_PRESUF).$(DLL_SUFFIX) 
-#endif
-#NSPRDIR=nspr20
-#DISTLIB libnspr $(BUILD_ROOT)/$(NSPRDIR)
-#endif
-#endif
-#
-#ifneq ($(MODULE), LibSSLio)
-#LIBSSLIO=$(NSCP_DISTDIR)/lib/libsslio.$(LIB_SUFFIX)
-#DISTLIB libsslio $(BUILD_ROOT)/$(NSPRDIR)/lib/sslio libsslio
-#endif
-
-ifneq ($(MODULE), LibDirMon)
-LIBDIRMON=$(NSCP_DISTDIR)/lib/libdirmon.$(LIB_SUFFIX)
-#DISTLIB libdirmon $(BUILD_ROOT)/$(NSPRDIR)/lib/dirmon libdirmon
-DISTLIB libdirmon $(BUILD_ROOT)/nspr20/lib/dirmon libdirmon
-endif
-
-
-#LibAres and LibPRstrm are from NSPR20 BIN release
-#ifneq ($(MODULE), LibAres)
-#LIBARES=$(NSCP_DISTDIR)/lib/libares.$(LIB_SUFFIX)
-#DISTLIB libares $(BUILD_ROOT)/$(NSPRDIR)/lib/arlib libares
-#endif
-
-#ifneq ($(MODULE), LibPRstrm)
-#LIBPRSTRMS=$(NSCP_DISTDIR)/lib/libprstrms.$(LIB_SUFFIX)
-#DISTLIB libprstrms $(BUILD_ROOT)/$(NSPRDIR)/lib/prstreams libprstrms
-#endif
-
-#ifneq ($(MODULE), LibXP)
-#LIBXP=$(MCOM_LIBDIR)/xp/$(NSOBJDIR_NAME)/libxp.$(LIB_SUFFIX)
-#DISTLIB libxp $(MCOM_LIBDIR)/xp libnspr
-#DISTLIB libxp $(MCOM_LIBDIR)/xp 
-#endif
-
-#ifneq ($(MODULE), LibDBM)
-#LIBDBM=$(MCOM_LIBDIR)/libdbm/$(NSOBJDIR_NAME)/libdbm.$(LIB_SUFFIX)
-#DISTLIB libdbm $(MCOM_LIBDIR)/libdbm libnspr
-#endif
-
-ifneq ($(MODULE), LibNT)
-LIBNT=$(MCOM_LIBDIR)/libnt/$(NSOBJDIR_NAME)/libnt.$(LIB_SUFFIX)
-DISTLIB libnt $(MCOM_LIBDIR)/libnt
-endif
-
-#ifneq ($(MODULE), LibSecurity)
-#ifeq ($(SECURITY), domestic)
-#WHICHA=us
-#else
-#WHICHA=export
-#endif
-#LIBSEC=$(MCOM_LIBDIR)/libsec/$(NSOBJDIR_NAME)/libsec-$(WHICHA).$(LIB_SUFFIX) $(LIBDBM) $(LIBXP)
-#LIBSECNAME=libsec-$(WHICHA)
-#libsec: $(LIBSECNAME)
-#DISTLIB libsec-$(WHICHA) $(MCOM_LIBDIR)/libsec libnspr libdbm libxp
-#endif
-
-ifneq ($(MODULE), LibNet)
-LIBNET=$(MCOM_LIBDIR)/libnet/$(NSOBJDIR_NAME)/libnet.$(LIB_SUFFIX)
-DISTLIB libnet.$(LIB_SUFFIX) $(MCOM_LIBDIR)/libnet
-endif
-
-ifneq ($(MODULE), LibCS)
-LIBCS=libcs
-LIBRARY libcs $(NS_LIBDIR)/libcs
-endif
-
-ifneq ($(MODULE), LibRobotAPI)
-LIBROBOTAPI=librobotapi
-LIBRARY librobotapi $(BATMAN)/rds/api
-endif
-
-ifneq ($(MODULE), httpdAdminHTML)
-MODULE httpd-adm-html $(HTTPD)/newadmin/html
-endif
-
-ifneq ($(MODULE), httpdAdminIcons)
-MODULE httpd-adm-icons $(HTTPD)/newadmin/icons
-endif
-
-ifeq ($(ARCH), WINNT)
-ifneq ($(MODULE), httpdAdminBin)
-# the admin binaries link with the Server DLL
-MODULE httpd-adm-bin $(HTTPD)/newadmin/src
-endif
-endif
-ifneq ($(MODULE), httpdAdminBin)
-ifneq ($(ARCH), WINNT)
-MODULE httpd-adm-bin $(HTTPD)/newadmin/src
-endif
-endif
-
-ifneq ($(MODULE), httpdInstall)
-MODULE httpd-inst $(HTTPD)/newinst
-endif
-
-ifneq ($(MODULE), httpdBinary)
-MODULE httpd-bin $(HTTPD)/src
-endif
-
-ifneq ($(MODULE), httpdExtrasDatabase)
-MODULE httpd-extra-db libxp
-endif
-
-
-ifneq ($(MODULE), httpSubagtBinary)
-MODULE http-subagt-bin $(HTTPD)/plugins/snmp
-endif
-
-
-ifneq ($(MODULE), proxyExtras)
-MODULE proxy-extra libxp
-endif
-
-ifneq ($(MODULE), proxyAdminHTML)
-MODULE proxy-adm-html $(PROXY)/newadmin/html
-endif
-
-ifneq ($(MODULE), proxyAdminIcons)
-MODULE proxy-adm-icons $(PROXY)/newadmin/icons
-endif
-
-ifneq ($(MODULE), proxyAdminBin)
-MODULE proxy-adm-bin $(PROXY)/newadmin/src
-endif
-
-ifneq ($(MODULE), proxyInstallHTML)
-MODULE proxy-inst-html $(PROXY)/newinst/html
-endif
-
-ifneq ($(MODULE), proxyInstallBin)
-MODULE proxy-inst-bin $(PROXY)/newinst/src
-endif
-
-ifneq ($(MODULE), proxyBinary)
-MODULE proxy-bin $(PROXY)/src
-endif
-
-ifneq ($(MODULE), admservBinary)
-MODULE admin-server $(BUILD_ROOT)/admserv libnspr frame safs libsnmp libadmin libadminutil libsec-$(WHICHA)
-endif
-
-ifneq ($(MODULE), mailServer)
-MODULE mail-server $(BUILD_ROOT)/mailserv2/code libnspr
-endif
-
-ifneq ($(MODULE), mailAdmin)
-MODULE mail-admin $(BUILD_ROOT)/mailserv2/admin libnspr frame libsec-$(WHICHA) admin
-endif
-
-ifneq ($(MODULE), mailInstall)
-MODULE mail-inst $(BUILD_ROOT)/mailserv2/install libnspr cgiutils regex frame
-endif
-
-ifneq ($(MODULE), nnrpdBinary)
-MODULE news-nnrpd $(BUILD_ROOT)/news/nnrpd libnspr inn base libsec-$(WHICHA)
-endif
-
-ifneq ($(MODULE), inndBinary)
-MODULE news-innd $(BUILD_ROOT)/news/innd libnspr inn base libsec-$(WHICHA)
-endif
-
-ifneq ($(MODULE), innBackEnds)
-MODULE news-backends $(BUILD_ROOT)/news/backends libnspr inn base libsec-$(WHICHA)
-endif
-
-ifneq ($(MODULE), innExpire)
-MODULE news-expire $(BUILD_ROOT)/news/expire libnspr inn
-endif
-
-ifneq ($(MODULE), innFrontEnds)
-MODULE news-frontends $(BUILD_ROOT)/news/frontends libnspr inn
-endif
-
-ifneq ($(MODULE), innInstall)
-MODULE news-install $(BUILD_ROOT)/news/newinst libnspr inn admin base
-endif
-
-ifneq ($(MODULE), innAdmin)
-MODULE news-admin $(BUILD_ROOT)/news/admin libnspr inn admin base 
-endif
-
-ifneq ($(MODULE), innSiteFiles)
-MODULE news-site $(BUILD_ROOT)/news/site libnspr inn
-endif
-
-
-ifneq ($(MODULE), batmanDS)
-MODULE batman-ds $(BATMAN)/ds libcs
-endif
-
-ifneq ($(MODULE), batmanClient)
-MODULE batman-client $(BATMAN)/client libcs
-endif
-
-ifneq ($(MODULE), batmanRDS)
-MODULE batman-rds $(BATMAN)/rds libnspr libcs regex libxp libdbm libnet.$(LIB_SUFFIX) libsec-$(WHICHA) base frame
-endif
-
-ifneq ($(MODULE), batmanMiniRDS)
-MODULE batman-minirds $(BATMAN)/minirds 
-endif
-
-ifneq ($(MODULE), batmanDBA)
-MODULE batman-dba $(BATMAN)/dba libcs libdbm
-endif
-
-ifneq ($(MODULE), batmanTaxonomy)
-MODULE batman-taxonomy $(BATMAN)/tax libcs
-endif
-
-ifneq ($(MODULE), httpd-extras)
-MODULE httpd-extras $(HTTPD)/extras
-endif
-
-ifneq ($(MODULE), httpd-mc-icons)
-MODULE httpd-mc-icons $(BUILD_ROOT)/mc-icons
-endif
-
-ifneq ($(MODULE), cms-rogue)
-MODULE cms-rogue $(ROGUE)
-endif
-
-ifneq ($(MODULE), cms-cert)
-MODULE cms-cert $(BUILD_ROOT)/certsvc
-endif
-
-ifneq ($(MODULE), ns-config)
-MODULE ns-config $(BUILD_ROOT)/config
-endif
-
-# httpd-bin first so the dll gets built
-ifeq ($(ARCH), WINNT)
-PACKAGE httpd httpd-adm-bin httpd-adm-html httpd-adm-icons httpd-inst
-else
-PACKAGE httpd httpd-bin 
-endif
-
-PACKAGE proxy proxy-bin proxy-adm-html proxy-adm-bin proxy-adm-icons proxy-inst-html proxy-inst-bin
-
-PACKAGE mail mail-server mail-admin mail-inst
-
-PACKAGE news news-backends news-expire news-frontends news-innd news-install news-admin news-nnrpd news-site
-
-PACKAGE admserv admin-server
-
-PACKAGE batman batman-rds batman-minirds batman-ds batman-client batman-taxonomy
-
-
-PACKAGE cms-httpd  httpd-adm-bin httpd-adm-html httpd-adm-icons httpd-mc-icons httpd-extras httpd-inst
-# base frame admin libaccess cgiutils  
-PACKAGE cms-server ns-config libnspr libdbm libsec-$(WHICHA) libxp cms-rogue cms-cert

+ 0 - 111
modules.sh

@@ -1,111 +0,0 @@
-#!/bin/sh
-#
-# BEGIN COPYRIGHT BLOCK
-# This Program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free Software
-# Foundation; version 2 of the License.
-# 
-# This Program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-# 
-# You should have received a copy of the GNU General Public License along with
-# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
-# Place, Suite 330, Boston, MA 02111-1307 USA.
-# 
-# In addition, as a special exception, Red Hat, Inc. gives You the additional
-# right to link the code of this Program with code not covered under the GNU
-# General Public License ("Non-GPL Code") and to distribute linked combinations
-# including the two, subject to the limitations in this paragraph. Non-GPL Code
-# permitted under this exception must only link to the code of this Program
-# through those well defined interfaces identified in the file named EXCEPTION
-# found in the source code files (the "Approved Interfaces"). The files of
-# Non-GPL Code may instantiate templates or use macros or inline functions from
-# the Approved Interfaces without causing the resulting work to be covered by
-# the GNU General Public License. Only Red Hat, Inc. may make changes or
-# additions to the list of Approved Interfaces. You must obey the GNU General
-# Public License in all respects for all of the Program code and other code used
-# in conjunction with the Program except the Non-GPL Code covered by this
-# exception. If you modify this file, you may extend this exception to your
-# version of the file, but you are not obligated to do so. If you do not wish to
-# provide this exception without modification, you must delete this exception
-# statement from your version and license this file solely under the GPL without
-# exception. 
-# 
-# 
-# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
-# Copyright (C) 2005 Red Hat, Inc.
-# All rights reserved.
-# END COPYRIGHT BLOCK
-#
-#
-# This is extracted from the 2.0 config shell script to decouple the module
-# extraction functionality.
-#
-# Input:  modules.awk
-# Output: modules.mk  (this will be included in nsconfig.mk)
-#
-
-awk '
-/^LIBRARY.*/ { 
-        printf "%s:", $2
-        for (i = 4; i <= NF; i++) printf " %s", $i
-        printf "\n\tcd %s; $(MAKE) $(MFLAGS)\n", $3
-        printf "clean_%s:", $2
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf "\n\tcd %s; $(MAKE) clean\n\n", $3
-        printf "depend_%s:", $2
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf "\n\tcd %s; $(MAKE) depend\n\n", $3
-        printf("else\nclean:");
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf("\ndepend:");
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf("\n");
-        next 
-} 
-/^DISTLIB.*/ { 
-        printf "%s:", $2
-        for (i = 4; i <= NF; i++) printf " %s", $i
-        printf "\n\tcd %s; $(MAKE) export $(NSDEFS)\n", $3
-        printf "clean_%s:", $2
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf "\n\tcd %s; $(MAKE) clean\n\n", $3
-        printf "depend_%s:", $2
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf "\n\tcd %s; $(MAKE) depend\n\n", $3
-        printf("else\nclean:");
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf("\ndepend:");
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf("\n");
-        next 
-} 
-/^MODULE.*/ { 
-        printf "%s:", $2
-        for (i = 4; i <= NF; i++) printf " %s", $i
-        printf "\n\tcd %s; $(MAKE) $(MFLAGS)\n\n", $3
-        printf "clean_%s:", $2
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf "\n\tcd %s; $(MAKE) clean\n\n", $3
-        printf "depend_%s:", $2
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf "\n\tcd %s; $(MAKE) depend\n\n", $3
-        printf("else\nclean:");
-        for (i = 4; i <= NF; i++) printf " clean_%s", $i
-        printf("\ndepend:");
-        for (i = 4; i <= NF; i++) printf " depend_%s", $i
-        printf("\n");
-        next 
-} 
-/^PACKAGE.*/ {
-        printf "%s:", $2
-        for (i = 3; i <= NF; i++) printf " %s", $i
-        printf "\nclean_%s:", $2
-        for (i = 3; i <= NF; i++) printf " clean_%s", $i
-        printf "\ndepend_%s:", $2
-        for (i = 3; i <= NF; i++) printf " depend_%s", $i
-        printf("\n");
-        next 
-} 
-{print} ' modules.awk > modules.mk