diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2013-06-14 16:11:09 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2013-06-15 21:32:37 +0200 |
commit | 1f2a635ae159b62ab3a0dcbf7d460484f83ff77b (patch) | |
tree | 62a2f2e9c70ba2ebcb9cad710e863abf0514cde3 /desktop/unx | |
parent | 9555b5bdb9ce2251bb8c4f967f20ed1b13eecf5e (diff) |
clean executables in Repository.mk
..so that no executable in gb_Helper_register_executables,NONE is installed
(except cppunittester from scp2/source/smoketest/)
and all others are installed.
Also remove unused officeloader executable.
Change-Id: I1726afc4d9d6848bca7fa07ebce3acd340777e8a
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/officeloader/officeloader.cxx | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/desktop/unx/source/officeloader/officeloader.cxx b/desktop/unx/source/officeloader/officeloader.cxx deleted file mode 100644 index 4a62385359bc..000000000000 --- a/desktop/unx/source/officeloader/officeloader.cxx +++ /dev/null @@ -1,100 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - - -#include <sal/main.h> -#include <osl/process.h> -#include <rtl/ustring.hxx> - -#include "../../../source/inc/exithelper.h" - - -SAL_IMPLEMENT_MAIN() -{ - oslProcess process; - oslProcessError error; - - OUString sExecutableFile; - rtl_uString **pCommandArgs; - sal_uInt32 nCommandArgs; - - osl_getExecutableFile( &sExecutableFile.pData ); - - sExecutableFile += ".bin"; - - nCommandArgs = osl_getCommandArgCount(); - pCommandArgs = new rtl_uString *[nCommandArgs]; - - for ( sal_uInt32 i = 0; i < nCommandArgs; i++ ) - { - pCommandArgs[i] = NULL; - osl_getCommandArg( i, &pCommandArgs[i] ); - } - - bool bRestart = false; - bool bFirstRun = true; - oslProcessExitCode exitcode = 255; - - do { - error = osl_executeProcess( - sExecutableFile.pData, - bFirstRun ? pCommandArgs : NULL, - bFirstRun ? nCommandArgs : 0, - 0, - NULL, - NULL, - NULL, - 0, - &process - ); - - if ( osl_Process_E_None == error ) - { - oslProcessInfo info; - - info.Size = sizeof(info); - - error = osl_joinProcess( process ); - if ( osl_Process_E_None != error ) - break; - - error = osl_getProcessInfo( process, osl_Process_EXITCODE, &info ); - if ( osl_Process_E_None != error ) - break; - - if ( info.Fields & osl_Process_EXITCODE ) - { - exitcode = info.Code; - bRestart = (EXITHELPER_CRASH_WITH_RESTART == exitcode || EXITHELPER_NORMAL_RESTART == exitcode); - } - else - break; - - osl_freeProcessHandle( process ); - - } - - bFirstRun = false; - - } while ( bRestart ); - - return exitcode; -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |