Kaydet (Commit) 8e549536 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Removed soldep module - module no one uses anymore.

üst 521da7bb
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <appdef.hxx>
const char* GetDefStandList()
{
char* pRet;
char* pEnv = getenv("STAR_STANDLST");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( _DEF_STAND_LIST );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, _DEF_STAND_LIST );
}
return pRet;
}
const char* GetIniRoot()
{
char* pRet;
char* pEnv = getenv("STAR_INIROOT");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( _INIROOT );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, _INIROOT );
}
return pRet;
}
const char* GetIniRootOld()
{
char* pRet;
char* pEnv = getenv("STAR_INIROOTOLD");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( _INIROOT_OLD );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, _INIROOT_OLD );
}
return pRet;
}
const char* GetSSolarIni()
{
char* pRet;
char* pEnv = getenv("STAR_SSOLARINI");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( _DEF_SSOLARINI );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, _DEF_SSOLARINI );
}
return pRet;
}
const char* GetSSCommon()
{
char* pRet;
char* pEnv = getenv("STAR_SSCOMMON");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( _DEF_SSCOMMON );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, _DEF_SSCOMMON );
}
return pRet;
}
const char* GetBServerRoot()
{
char* pRet;
char* pEnv = getenv("STAR_BSERVERROOT");
if ( pEnv )
{
int nLen = strlen( pEnv );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, pEnv );
}
else
{
int nLen = strlen( B_SERVER_ROOT );
pRet = ( char *) malloc( nLen + 1 );
(void) strcpy( pRet, B_SERVER_ROOT );
}
return pRet;
}
const char* GetEnv( const char *pVar )
{
char *pRet = getenv( pVar );
if ( !pRet )
pRet = "";
return pRet;
}
const char* GetEnv( const char *pVar, const char *pDefault )
{
char *pRet = getenv( pVar );
if ( !pRet )
return pDefault;
return pRet;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
This diff is collapsed.
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=..
PRJNAME=soldep
TARGET=bootstrpdt
ENABLE_EXCEPTIONS=true
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# fixme, code is not yet 64 bit clean
.IF "$(OS)$(CPU)"=="LINUXX" || ("$(COM)"=="C52" && "$(CPU)"=="U")
all:
@echo nothing to do
.ENDIF
# --- Files --------------------------------------------------------
EXCEPTIONSFILES= \
$(SLO)$/prj.obj
SLOFILES=\
$(SLO)$/dep.obj \
$(SLO)$/minormk.obj \
$(SLO)$/prodmap.obj \
$(SLO)$/appdef.obj \
$(SLO)$/hashtbl.obj \
$(SLO)$/prj.obj
SHL1TARGET =$(TARGET)$(DLLPOSTFIX)
SHL1IMPLIB =$(TARGET)
SHL1LIBS =$(SLB)$/$(TARGET).lib
SHL1DEF =$(MISC)$/$(SHL1TARGET).def
SHL1DEPN =$(SHL1LIBS)
SHL1STDLIBS=\
$(TOOLSLIB) \
$(BTSTRPLIB) \
$(SALLIB)
DEF1NAME =$(SHL1TARGET)
DEF1DEPN =$(MISC)$/$(SHL1TARGET).flt
DEFLIB1NAME =$(TARGET)
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
$(MISC)$/$(SHL1TARGET).flt: makefile.mk
@echo ------------------------------
@echo Making: $@
@echo WEP > $@
@echo LIBMAIN >> $@
@echo LibMain >> $@
@echo __CT >> $@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "minormk.hxx"
#include "prodmap.hxx"
#include <appdef.hxx>
#include <tools/fsys.hxx>
#include <tools/geninfo.hxx>
//
// class MinorMk
//
/*****************************************************************************/
MinorMk::MinorMk(
GenericInformationList *pList,
const ByteString &rVersion,
const ByteString &rWorkStamp,
const ByteString &rEnvironment,
const ByteString &rMinor
)
/*****************************************************************************/
{
String sRoot( ProductMapper::GetVersionRoot( pList, rVersion ));
if ( sRoot.Len()) {
ByteString sPath( sRoot, RTL_TEXTENCODING_ASCII_US );
sPath += "/";
sPath += rEnvironment;
sPath += "/";
sPath += "inc";
if ( rMinor.Len()) {
sPath += ".";
sPath += rMinor;
}
#ifdef UNX
sPath.SearchAndReplaceAll( "\\", "/" );
while( sPath.SearchAndReplace( "//", "/" ) != STRING_NOTFOUND ) {};
#else
sPath.SearchAndReplaceAll( "/", "\\" );
while( sPath.SearchAndReplace( "\\\\", "\\" ) != STRING_NOTFOUND ) {};
#endif
DirEntry aPath( String( sPath, RTL_TEXTENCODING_ASCII_US ));
ByteString sFile( rWorkStamp );
sFile += "minor.mk";
DirEntry aFile( aPath );
aFile += DirEntry( String( sFile, RTL_TEXTENCODING_ASCII_US ));
if ( !aFile.Exists()) {
sFile = sFile.Copy( 3 );
aFile = aPath;
aFile += DirEntry( String( sFile, RTL_TEXTENCODING_ASCII_US ));
}
ReadMinorMk( aFile.GetFull());
}
}
/*****************************************************************************/
MinorMk::MinorMk( GenericInformationList *pList, const ByteString rVersion )
/*****************************************************************************/
{
String sRoot( ProductMapper::GetVersionRoot( pList, rVersion ));
if ( sRoot.Len()) {
ByteString sPath( sRoot, RTL_TEXTENCODING_ASCII_US );
sPath += "/src/solenv/inc";
#ifdef UNX
sPath.SearchAndReplaceAll( "\\", "/" );
while( sPath.SearchAndReplace( "//", "/" ) != STRING_NOTFOUND ) {};
#else
sPath.SearchAndReplaceAll( "/", "\\" );
while( sPath.SearchAndReplace( "\\\\", "\\" ) != STRING_NOTFOUND ) {};
#endif
DirEntry aPath( String( sPath, RTL_TEXTENCODING_ASCII_US ));
ByteString sFile( "minor.mk" );
DirEntry aFile( aPath );
aFile += DirEntry( String( sFile, RTL_TEXTENCODING_ASCII_US ));
ReadMinorMk( aFile.GetFull());
}
}
/*****************************************************************************/
MinorMk::MinorMk( const ByteString &rMinor, const ByteString &rEnvironment )
/*****************************************************************************/
: bExists( FALSE )
{
ByteString sDelimiter( DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
ByteString sSolver( GetEnv( "SOLARVERSION" ));
BOOL bNewEnv = TRUE;
if ( !sSolver.Len()) {
sSolver = GetEnv( "SOLARVER" );
bNewEnv = FALSE;
}
ByteString sUPD( GetEnv( "UPD" ));
ByteString sMinorMk( sSolver );
sMinorMk += sDelimiter;
if ( !bNewEnv ) {
sMinorMk += sUPD;
sMinorMk += sDelimiter;
}
if ( rEnvironment.Len()) {
sMinorMk += rEnvironment;
sMinorMk += sDelimiter;
sMinorMk += "inc";
if( rMinor.Len()) {
sMinorMk += ".";
sMinorMk += rMinor;
}
sMinorMk += sDelimiter;
}
sMinorMk += sUPD;
sMinorMk += "minor.mk";
String sFile( sMinorMk, RTL_TEXTENCODING_ASCII_US );
ReadMinorMk( sFile );
}
/*****************************************************************************/
void MinorMk::ReadMinorMk( const String &rFileName )
/*****************************************************************************/
{
if ( DirEntry( rFileName ).Exists()) {
bExists = TRUE;
SvFileStream aStream( rFileName, STREAM_STD_READ );
while ( !aStream.IsOpen())
aStream.Open( rFileName, STREAM_STD_READ );
ByteString sLine;
while ( !aStream.IsEof()) {
aStream.ReadLine( sLine );
if ( sLine.GetToken( 0, '=' ) == "RSCVERSION" )
sRSCVERSION = sLine.GetToken( 1, '=' );
else if ( sLine.GetToken( 0, '=' ) == "RSCREVISION" )
sRSCREVISION = sLine.GetToken( 1, '=' );
else if ( sLine.GetToken( 0, '=' ) == "BUILD" )
sBUILD = sLine.GetToken( 1, '=' );
else if ( sLine.GetToken( 0, '=' ) == "LAST_MINOR" )
sLAST_MINOR = sLine.GetToken( 1, '=' );
}
aStream.Close();
sRSCVERSION.EraseTrailingChars();
sRSCREVISION.EraseTrailingChars();
sBUILD.EraseTrailingChars();
sLAST_MINOR.EraseTrailingChars();
}
}
/*****************************************************************************/
MinorMk::~MinorMk()
/*****************************************************************************/
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
This diff is collapsed.
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _MHAPPDEF_HXX
#define _MHAPPDEF_HXX
#ifdef UNX
#define DEFAULT_INI_ROOT "/so/env"
#define DEFAULT_BS_ROOT "/so/env/b_server"
#define DEFAULT_EIS_ROOT "/so/env/merge"
#define PATH_SEPARATOR '/'
#define S_PATH_SEPARATOR "/"
#else
#define DEFAULT_INI_ROOT "r:"
#define DEFAULT_BS_ROOT "n:"
#define DEFAULT_EIS_ROOT "w:"
#define PATH_SEPARATOR '\\'
#define S_PATH_SEPARATOR "\\"
#endif
#define _INI_DRV DEFAULT_INI_ROOT
#define B_SERVER_ROOT DEFAULT_BS_ROOT
#define DEFAULT_INI_FILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "b_server.ini"
#define BINARYROOT B_SERVER_ROOT S_PATH_SEPARATOR "bin"
#define _JOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "db"
#define _INJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbin"
#define _OUTJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dbout"
#define _ERRJOB_DIR B_SERVER_ROOT S_PATH_SEPARATOR "server" S_PATH_SEPARATOR "dberr"
#define _BUILDPATTERN_DIR B_SERVER_ROOT S_PATH_SEPARATOR "pattern"
#define _COMMENT_DIR B_SERVER_ROOT S_PATH_SEPARATOR "comment"
#define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
#define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
#define _DEF_DEFAULT_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "default.lst"
#define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
#define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
#define _SERVER_IDENT_FLAG B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "server.id"
#define _CUSTOMJOBINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "custom.ini"
#define _BUILDCOMMANDINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bcommand.ini"
#define _DATABASEINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "database.ini"
#define _ZNINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "bszn.ini"
#define _ERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "errinf.lst"
#define _REGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "regexp.lst"
#define _POSITIVERRORINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "perrinf.lst"
#define _POSITIVREGEXPINFOFILE B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "pregexp.lst"
#define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config"
#define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config"
#define _ENV_DIR B_SERVER_ROOT S_PATH_SEPARATOR "config"
#define _REDIRECTIONPATH B_SERVER_ROOT S_PATH_SEPARATOR "redir"
#define _ZLOGSPATH B_SERVER_ROOT S_PATH_SEPARATOR "zlogs"
#define DEFAULT_PROTPATH B_SERVER_ROOT S_PATH_SEPARATOR "filesize"
#define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
#define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
#define LOG_DIR B_SERVER_ROOT S_PATH_SEPARATOR "log"
#define _REDIRECTIONSIZE "10000"
#define _EISPATH DEFAULT_EIS_ROOT S_PATH_SEPARATOR "EIS"
#define _BUILDEVENTPATH _EISPATH S_PATH_SEPARATOR "EventImport"
#define _WRITE_LOGFILES "1"
#define _WRITE_JOBFILES "1"
#define _VERSION_WINDOW "0"
#define _JOB_WINDOW "0"
#define _APPWIN_MAXIMIZED "0"
#define _CONTEXT_TBOX "0"
#define _COLOR_DROPED COL_GRAY
#define _COLOR_WAIT COL_BLUE
#define _COLOR_BUILD COL_GREEN
#define _COLOR_ERROR COL_RED
#define _COLOR_BUILDERROR COL_MAGENTA
#define _COLOR_OK COL_BLACK
#define _COLOR_DELIVERED COL_CYAN
#define _COLOR_MASTERSTOP COL_LIGHTRED
#define _ASYNCHRON "1"
// folowing defines are used to write filesize information for binaries
#define OH_GOTT "*"
#define UNX_DEFAULT_FILESIZES "bin/" OH_GOTT ".bin;bin/" OH_GOTT ".res;bin/" OH_GOTT ".tlb;lib/" OH_GOTT ".so"
#define DOS_DEFAULT_FILESIZES "bin\\*.exe;bin\\*.res;bin\\*.dll;bin\\*.tlb"
#ifdef UNX
#define DEFAULT_FILESIZES UNX_DEFAULT_FILESIZES
#else
#define DEFAULT_FILESIZES DOS_DEFAULT_FILESIZES
#endif
/** States for BuildServer projects and directories
*/
#ifndef BuildStatus
#define BuildStatus USHORT
#endif
#define BS_DROPED 0 /// project is waiting for dispatching
#define BS_BUILD 1 /// project/directory is building
#define BS_WAIT 2 /// project/directory is waiting for building
#define BS_OK 3 /// project/directory builded whithout errors
#define BS_BUILDANDERROR 4 /// project is in build, any errors accured
#define BS_ERROR 5 /// project/directory builded with errors
#define BS_NON 6 /// no state is set
#define BS_DELIVERED 7 /// project was delivered without errors
#define BS_DELIVEREDANDERROR 8 /// project was delivered with errors
#define BS_FIXED 9 /// errors are fixed
#define BS_NOTDELIVERED 10 /// project is ready to deliver
#define BS_BUILD_PRIO 11 /// build projects with prio
#define BS_BUILD_ORDER 12 /// build project in correct order
#define BS_BUILD_DEPEND 13 /// build projects using dependencies
#define BS_BUILD_DELIVER 14 /// build projects using dependencies and deliver builded projects
#define BS_BUILD_NORMAL 15 /// build projects without using dependencies
#define BS_BUILD_DELIVER_NO_DEPEND 16 /// build projects without using dependencies and deliver builded projects
#define BS_BUILD_DOUBLE_LOG 17 /// error with double log names
#define LF_STARDIV "StarDivision"
#define LF_UNIX "UNIX"
#define LF_MAC "Macintosh"
#define LF_OS2 "OS/2"
// path conversion
const char* GetDefStandList();
const char* GetIniRoot();
const char* GetIniRootOld();
const char* GetSSolarIni();
const char* GetSSCommon();
const char* GetBServerRoot();
const char* GetEnv( const char *pVar );
const char* GetEnv( const char *pVar, const char *pDefault );
#define CONVERT_R_TO_HOSTFSYS( sPath ) { sPath.ToLowerAscii().SearchAndReplace( "r:", GetEnv("ISERVERBASE", DEFAULT_INI_ROOT ) ); sPath.SearchAndReplaceAll( "\\", S_PATH_SEPARATOR ); }
// Only for usage inside IServer!
#define ISERVER_DEF_STAND_LIST "r:\\b_server\\config\\stand.lst"
#define ISERVER_DEF_DEPEND_LIST "r:\\b_server\\config\\depend.lst"
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _DTSODCMP_HRC
#define _DTSODCMP_HRC
//========================================================================
// Bereiche
#define RID_SD_STRING_START 26000
#define RID_SD_MENU_START 27000
#define RID_SD_CONTEXTMENU_START 28500
#define RID_SD_TOOLBOX_START 29000
#define RID_SD_WINDOW_START 30000
#define RID_SD_STATUSBAR_START 30500
#define RID_SD_IMAGE_START 31000
#define RID_SD_BITMAP_START 31250
#define RID_SD_DIALOG_START 31500
#define RID_SD_DEPPER_DIALOG_START 31750
// end is at 31999
#define SID_START 0
//========================================================================
// Window-Ids
//========================================================================
// Menu-Ids
#define RID_SD_MENU_APP (RID_SD_MENU_START)
#define RID_SD_MENU_FILE (RID_SD_MENU_START + 1)
#define RID_SD_MENU_FILE_NEW (RID_SD_MENU_START + 2)
#define RID_SD_MENU_FILE_OPEN (RID_SD_MENU_START + 3)
#define RID_SD_MENU_FILE_SAVE (RID_SD_MENU_START + 4)
#define RID_SD_MENU_FILE_SAVEAS (RID_SD_MENU_START + 5)
#define RID_SD_MENU_FILE_EXIT (RID_SD_MENU_START + 6)
#define RID_SD_MENU_NEW_OBJECT (RID_SD_MENU_START + 7)
#define RID_SD_MENU_REMOVE_LAST (RID_SD_MENU_START + 8)
#define RID_SD_MENU_AUTO (RID_SD_MENU_START + 9)
#define RID_SD_MENU_RUN_TEST (RID_SD_MENU_START + 10)
//========================================================================
// ContextMenu-Ids
//========================================================================
// ToolBox-Ids
#define RID_SD_TOOLBOX_APP (RID_SD_TOOLBOX_START)
#define RID_SD_TOOLBOX_FILE_NEW (RID_SD_TOOLBOX_START + 1)
#define RID_SD_TOOLBOX_FILE_OPEN (RID_SD_TOOLBOX_START + 2)
#define RID_SD_TOOLBOX_FILE_SAVE (RID_SD_TOOLBOX_START + 3)
//========================================================================
// StatusBar-Ids
//========================================================================
// Image-Ids
#define RID_SD_CP_IMAGE (RID_SD_IMAGE_START)
//========================================================================
// Dialog-Ids
#define RID_SD_DIALOG_NEWPROJECT (RID_SD_DEPPER_DIALOG_START)
#define RID_SD_DIALOG_NEWDIRECTORY (RID_SD_DEPPER_DIALOG_START + 1)
#define RID_SD_DIALOG_HELP (RID_SD_DEPPER_DIALOG_START + 2)
//========================================================================
// String-Ids
#define RID_SD_CP_NAME (RID_SD_STRING_START)
//========================================================================
// Slot-Ids
//========================================================================
// Format-Ids
#endif //_DTSODCMP_HRC
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include <tools/stream.hxx>
class GenericInformationList;
//
// class MinorMk
//
class MinorMk : public SvFileStream
{
private:
ByteString sRSCVERSION;
ByteString sRSCREVISION;
ByteString sBUILD;
ByteString sLAST_MINOR;
BOOL bExists;
void ReadMinorMk( const String &rFileName );
public:
MinorMk(
GenericInformationList *pList,
const ByteString &rVersion,
const ByteString &rWorkStamp,
const ByteString &rEnvironment,
const ByteString &rMinor
);
MinorMk(
const ByteString &rMinor,
const ByteString &rEnvironment
);
MinorMk(
GenericInformationList *pList,
const ByteString rVersion
);
~MinorMk();
ByteString GetRscVersion()
{ return sRSCVERSION; }
ByteString GetRscRevision()
{ return sRSCREVISION; }
ByteString GetBuildNr()
{ return sBUILD; }
ByteString GetLastMinor()
{ return sLAST_MINOR; }
BOOL Exists()
{ return bExists; }
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef PRODUCT_MAPPER_HXX
#define PRODUCT_MAPPER_HXX
#include <bootstrp/sstring.hxx>
class GenericInformation;
class GenericInformationList;
DECLARE_LIST( BaseProductList, ByteString * )
//
// class ProductMapper
//
#define PRODUCT_MAPPER_OK 0x0000
#define PRODUCT_MAPPER_NO_PRODUCT 0x0001
#define PRODUCT_MAPPER_NO_VERSION_INFORMATION 0x0002
class ProductMapper
{
private:
GenericInformationList *pVersionList;
GenericInformationList *pProductList;
SByteStringList aBaseList;
SByteStringList aPrintedList;
USHORT PrintDependentTargets( const ByteString &rProduct, USHORT nLevel = 0 );
USHORT PrintAndDeleteBaseList();
SByteStringList *GetMinorList( const ByteString &rVersion, const ByteString &rEnvironment );
BaseProductList *GetBases( GenericInformation *pProductInfo, USHORT nLevel = 0, BaseProductList *pBases = NULL );
USHORT PrintSingleMinorList( GenericInformation *pProductInfo, BaseProductList *pBases, const ByteString rEnvironment );
public:
ProductMapper();
ProductMapper( GenericInformationList *pVerList );
~ProductMapper();
void CreateProductList( GenericInformationList *pVerList );
USHORT GetProductInformation( const ByteString &rProduct, GenericInformation *& pProductInfo );
USHORT PrintDependencies( const ByteString &rProduct );
USHORT PrintProductList();
USHORT PrintMinorList( const ByteString rProduct, const ByteString rEnvironment );
static String GetVersionRoot( GenericInformationList *pList, const ByteString &rVersion );
GenericInformationList *GetProductList() { return pProductList; }
};
#endif // PRODUCT_MAPPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
dp soldep : svtools NULL
dp soldep usr1 - all dp_mkout NULL
dp soldep\bootstrp nmake - all dp_btstrp NULL
dp soldep\source nmake - all dp_soldep dp_btstrp NULL
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment