diff --git a/admin/win/Toolchain-mingw32-openSUSE.cmake b/admin/win/Toolchain-mingw32-openSUSE.cmake deleted file mode 100644 index beba4c40fc552..0000000000000 --- a/admin/win/Toolchain-mingw32-openSUSE.cmake +++ /dev/null @@ -1,37 +0,0 @@ -SET(MINGW_PREFIX "i686-w64-mingw32") - -# SPDX-FileCopyrightText: 2012 ownCloud, Inc. -# SPDX-License-Identifier: GPL-2.0-or-later - -# this one is important -SET(CMAKE_SYSTEM_NAME Windows) - - -# specify the cross compiler -SET(CMAKE_C_COMPILER ${MINGW_PREFIX}-gcc) -SET(CMAKE_CXX_COMPILER ${MINGW_PREFIX}-g++) -SET(CMAKE_RC_COMPILER ${MINGW_PREFIX}-windres) - -# where is the target environment containing libraries -SET(CMAKE_FIND_ROOT_PATH /usr/${MINGW_PREFIX}/sys-root/mingw) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) - - -## configure qt variables -# generic -SET(QMAKESPEC win32-g++-cross) - -# dirs -SET(QT_LIBRARY_DIR /usr/${MINGW_PREFIX}/bin) -SET(QT_PLUGINS_DIR ${CMAKE_FIND_ROOT_PATH}/lib/qt5/plugins) -SET(QT_MKSPECS_DIR ${CMAKE_FIND_ROOT_PATH}/share/qt5/mkspecs) -SET(QT_QT_INCLUDE_DIR ${CMAKE_FIND_ROOT_PATH}/include) - -# qt tools -SET(QT_QMAKE_EXECUTABLE ${MINGW_PREFIX}-qmake-qt5) -SET(QT_MOC_EXECUTABLE ${MINGW_PREFIX}-moc-qt5) -SET(QT_RCC_EXECUTABLE ${MINGW_PREFIX}-rcc-qt5) -SET(Qt5Widgets_UIC_EXECUTABLE ${MINGW_PREFIX}-uic-qt5) -SET(QT_LRELEASE_EXECUTABLE ${MINGW_PREFIX}-lrelease-qt5) diff --git a/admin/win/create_stable_toolchain.sh b/admin/win/create_stable_toolchain.sh deleted file mode 100755 index 9c2537953f286..0000000000000 --- a/admin/win/create_stable_toolchain.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# SPDX-FileCopyrightText: 2016 ownCloud, Inc. -# SPDX-License-Identifier: GPL-2.0-or-later - -# -# This script creates a new windows toolchain repository in OBS. -# It only works for versions that do not yet exist. -# -# Make sure to adopt the variable stableversion. - -# Set the new stable version accordingly: -stableversion=2.1 -targetproject="isv:ownCloud:toolchains:mingw:win32:${stableversion}" - -# Create the new repo - -# get the xml build description of the stable repo -xml=`osc meta prj isv:ownCloud:toolchains:mingw:win32:stable` -stable_xml="${xml/stable/$stableversion}" - -echo $stable_xml - -echo $stable_xml | osc meta prj -F - ${targetproject} - - -# now copy all packages -packs=`osc ls isv:ownCloud:toolchains:mingw:win32:stable` - -for pack in $packs -do - osc copypac isv:ownCloud:toolchains:mingw:win32:stable $pack $targetproject -done diff --git a/admin/win/download_runtimes.sh b/admin/win/download_runtimes.sh deleted file mode 100755 index f73669cf29241..0000000000000 --- a/admin/win/download_runtimes.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -x - -# SPDX-FileCopyrightText: 2014 ownCloud, Inc. -# SPDX-License-Identifier: GPL-2.0-or-later - -#VS2013 -base_url=http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3 -tmp_path=${1:-/tmp/.vcredist} - -mkdir -p $tmp_path - -copy_cached_file() { - file=$1 - if [ ! -e $tmp_path/$file ]; then - wget -O $tmp_path/$file $base_url/$file - fi - cp -a $tmp_path/$file $PWD -} - -copy_cached_file "vcredist_x64.exe" -copy_cached_file "vcredist_x86.exe" - diff --git a/cmake/scripts/generate_findpackage_file b/cmake/scripts/generate_findpackage_file deleted file mode 100644 index d0d164dc25307..0000000000000 --- a/cmake/scripts/generate_findpackage_file +++ /dev/null @@ -1,140 +0,0 @@ -#!/usr/bin/env ruby - -# Simple script to generate simple cmake modules for finding -# libraries (packages) -# -# usage: generate_findpackage_file -# then you will be prompted to enter the required parameters -# -##################################################################### -# -# SPDX-FileCopyrightText: 2006 Alexander Neundorf -# SPDX-FileCopyrightText: 2006 Andreas Schneider -# SPDX-License-Identifier: GPL-2.0-or-later -# - -require 'readline' - -package=Readline.readline("Name of package: ") - -name=Readline.readline("\nYour Name (for copyright): ") - -email=Readline.readline("\nYour mail (for copyright): ") - -pkgconfig=Readline.readline("\npkgconfig package name (e.g. \"libxml-2.0\", leave empty to skip pkgconfig): ") - -header=Readline.readline("\nLook for header (e.g. \"jpeglib.h\" or \"libxml/xpath.h\"): ") - -incSubDir=Readline.readline("\nLook for header subdir (e.g. \"libxml2\", empty to skip ): ") - -libs=Readline.readline("\nLook for library (e.g. \"xml2\" or \"avcodec avutil\"): ") - -t = Time.now - -cmakeIncDirName=package.upcase+"_INCLUDE_DIR" -cmakeIncDirNames=package.upcase+"_INCLUDE_DIRS" -cmakeLibNames=package.upcase+"_LIBRARIES" -cmakeDefsName=package.upcase+"_DEFINITIONS" -cmakeFoundName=package.upcase+"_FOUND" -cmakeQuietName=package+"_FIND_QUIETLY" -cmakeRequiredName=package+"_FIND_REQUIRED" - -file=File.new("Find#{package}.cmake", "w+") - - -file.printf("# - Try to find #{package}\n") -file.printf("# Once done this will define\n") -file.printf("#\n") -file.printf("# #{cmakeFoundName} - system has #{package}\n") -file.printf("# #{cmakeIncDirNames} - the #{package} include directory\n") -file.printf("# #{cmakeLibNames} - Link these to use #{package}\n") -file.printf("# #{cmakeDefsName} - Compiler switches required for using #{package}\n") -file.printf("#\n") -file.printf("# Copyright (c) #{t.year} #{name} <#{email}>\n") -file.printf("#\n") -file.printf("# Redistribution and use is allowed according to the terms of the New\n") -file.printf("# BSD license.\n") -file.printf("# For details see the accompanying COPYING-CMAKE-SCRIPTS file.\n") -file.printf("#\n") - -file.printf("\n") -file.printf("\n") - -file.printf("if (#{cmakeLibNames} AND #{cmakeIncDirNames})\n") -file.printf(" # in cache already\n") -file.printf(" set(#{cmakeFoundName} TRUE)\n") -file.printf("else (#{cmakeLibNames} AND #{cmakeIncDirNames})\n") - -if not pkgconfig.empty? - file.printf(" find_package(PkgConfig)\n") - file.printf(" if (PKG_CONFIG_FOUND)\n") - file.printf(" pkg_check_modules(_#{package.upcase} #{pkgconfig})\n") - file.printf(" endif (PKG_CONFIG_FOUND)\n") -end - -file.printf("\n") - -file.printf(" find_path(#{cmakeIncDirName}\n") -file.printf(" NAMES\n") -file.printf(" #{header}\n") -file.printf(" PATHS\n") -if not pkgconfig.empty? - file.printf(" ${_#{package.upcase}_INCLUDEDIR}\n") -end -file.printf(" /usr/include\n") -file.printf(" /usr/local/include\n") -file.printf(" /opt/local/include\n") -file.printf(" /sw/include\n") - -if not incSubDir.empty? - file.printf(" PATH_SUFFIXES\n") - file.printf(" #{incSubDir}\n") -end -file.printf(" )\n") - -file.printf("\n") - -libs.split(" ").each do |lib| - file.printf(" find_library(#{lib.upcase}_LIBRARY\n") - file.printf(" NAMES\n") - file.printf(" #{lib}\n") - file.printf(" PATHS\n") - if not pkgconfig.empty? - file.printf(" ${_#{package.upcase}_LIBDIR}\n") - end - file.printf(" /usr/lib\n") - file.printf(" /usr/local/lib\n") - file.printf(" /opt/local/lib\n") - file.printf(" /sw/lib\n") - file.printf(" )\n") - file.printf("\n") -end - -file.printf(" set(#{cmakeIncDirNames}\n") -file.printf(" ${#{cmakeIncDirName}}\n") -file.printf(" )\n") - -file.printf("\n") - -libs.split(" ").each do |lib| - file.printf(" if (#{lib.upcase}_LIBRARY)\n") - file.printf(" set(#{cmakeLibNames}\n") - file.printf(" ${#{cmakeLibNames}}\n") - file.printf(" ${#{lib.upcase}_LIBRARY}\n") - file.printf(" )\n") - file.printf(" endif (#{lib.upcase}_LIBRARY)\n") - file.printf("\n") -end - -file.printf(" include(FindPackageHandleStandardArgs)\n") -file.printf(" find_package_handle_standard_args(#{package} DEFAULT_MSG #{cmakeLibNames} #{cmakeIncDirNames})\n") - -file.printf("\n") - -file.printf(" # show the #{cmakeIncDirNames} and #{cmakeLibNames} variables only in the advanced view\n") -file.printf(" mark_as_advanced(#{cmakeIncDirNames} #{cmakeLibNames})\n\n") - -file.printf("endif (#{cmakeLibNames} AND #{cmakeIncDirNames})\n\n") - -printf("Done, generated Find#{package}.cmake\n") - diff --git a/cmake/scripts/generate_lib_file b/cmake/scripts/generate_lib_file deleted file mode 100644 index ab01c041ea544..0000000000000 --- a/cmake/scripts/generate_lib_file +++ /dev/null @@ -1,122 +0,0 @@ -#!/usr/bin/env ruby - -# simple script to generate CMakeLists.txt for wengophone libs -# -# usage: generate_lib_file -# then you will be prompted to enter the required parameters -# -##################################################################### -# -# SPDX-FileCopyrightText: 2006 Andreas Schneider -# SPDX-License-Identifier: GPL-2.0-or-later -# - -print("Name of project: ") -project=gets.chomp - -printf("\n") - -print("Other projects to include (e.g. \"owutil tinyxml\", leave empty to skip): ") -otherprojects=gets.chomp - -printf("\n") - -print("Definitions (leave empty to skip): ") -definitions=gets.chomp - -cmakePublicIncDirName = project.upcase+"_PUBLIC_INCLUDE_DIRS" -cmakePrivateIncDirName = project.upcase+"_PRIVATE_INCLUDE_DIRS" -cmakeLibName = project.upcase+"_LIBRARY" -cmakeLibNames = project.upcase+"_LINK_LIBRARIES" -cmakePublicDefsName = project.upcase+"_PUBLIC_DEFINITIONS" -cmakePrivateDefsName = project.upcase+"_PRIVATE_DEFINITIONS" - -file=File.new("CMakeLists.txt", "w+") - -file.printf("project(#{project})\n") -file.printf("\n") -file.printf("# needed include directories to build #{project}\n") -file.printf("# saves the variable in internal cache for later use\n") -file.printf("set(#{cmakePublicIncDirName}\n") -file.printf(" ${CMAKE_CURRENT_SOURCE_DIR}\n") -file.printf(" ${CMAKE_CURRENT_SOURCE_DIR}/include\n") -file.printf(" CACHE INTERNAL \"#{project} public include directories\"\n") -file.printf(")\n") - -file.printf("\n") - -file.printf("set(#{cmakePrivateIncDirName}\n") -otherprojects.split(" ").each do |otherproject| - file.printf(" ${#{otherproject.upcase}_PUBLIC_INCLUDE_DIRS}\n") -end -file.printf(" ${CMAKE_CURRENT_BINARY_DIR}\n") -file.printf(")\n") - -file.printf("\n") - -file.printf("set(#{cmakeLibName}\n") -file.printf(" #{project}\n") -file.printf(" CACHE INTERNAL \"#{project} library\"\n") -file.printf(")\n") - -file.printf("\n") - -file.printf("# #{project} lib and dependencies\n") -file.printf("set(#{cmakeLibNames}\n") -file.printf(" #{cmakeLibName}\n") -otherprojects.split(" ").each do |otherproject| - file.printf(" ${#{otherproject.upcase}_LIBRARIES}\n") -end -file.printf(")\n") - -file.printf("\n") - -if not definitions.empty? - file.printf("set(#{cmakePublicDefsName}\n") - file.printf(" #{definitions}\n") - file.printf(" CACHE INTERNAL \"#{project} public definitions\"\n") - file.printf(")\n") - - file.printf("\n") - - file.printf("set(#{cmakePrivateDefsName}\n") - file.printf(" #{definitions}\n") - file.printf(")\n") - - file.printf("\n") -end - -file.printf("set(#{project}_SRCS\n") -file.printf(" files.c\n") -file.printf(")\n") - -file.printf("\n") - -file.printf("include_directories(\n") -file.printf(" ${#{cmakePublicIncDirName}}\n") -file.printf(" ${#{cmakePrivateIncDirName}}\n") -file.printf(")\n") - -file.printf("\n") - -if not definitions.empty? - file.printf("add_definitions(\n") - file.printf(" ${#{cmakePublicDefsName}}\n") - file.printf(" ${#{cmakePrivateDefsName}}\n") - file.printf(")\n") - - file.printf("\n") -end - -file.printf("\n") - -file.printf("add_library(${#{cmakeLibName}} STATIC ${#{project}_SRCS})\n") - -file.printf("\n") - -file.printf("target_link_libraries(${#{cmakeLibNames}})\n") - -file.printf("\n") - -printf("Generated CMakeLists.txt for #{project}\n") - diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index c7ca1f9d5944a..8abd40f6bfa47 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -1065,22 +1065,6 @@ void SyncEngine::finishSync() emit transmissionProgress(*_progressInfo); _progressInfo->startEstimateUpdates(); - // post update phase script: allow to tweak stuff by a custom script in debug mode. - if (!qEnvironmentVariableIsEmpty("OWNCLOUD_POST_UPDATE_SCRIPT")) { -#ifndef NDEBUG - const QString script = qEnvironmentVariable("OWNCLOUD_POST_UPDATE_SCRIPT"); - - qCDebug(lcEngine) << "Post Update Script: " << script; - auto scriptArgs = script.split(QRegularExpression("\\s+"), Qt::SkipEmptyParts); - if (scriptArgs.size() > 0) { - const auto scriptExecutable = scriptArgs.takeFirst(); - QProcess::execute(scriptExecutable, scriptArgs); - } -#else - qCWarning(lcEngine) << "**** Attention: POST_UPDATE_SCRIPT installed, but not executed because compiled with NDEBUG"; -#endif - } - // do a database commit _journal->commit(QStringLiteral("post treewalk"));