aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-11-03 01:50:26 +0100
committerRobert Tari <robert@tari.in>2021-11-03 01:50:26 +0100
commit3834947c6828ec4bcea7d941b1c28a8b9318f829 (patch)
tree3c879f87ddd4f0f20e6a72a50a15775c4ecb0b7c
parent7d87d4cf8474a9f7f73c362b0e4be718b7e04707 (diff)
parentcdc973d04fd3af82159abe2c8e5473152d97fbeb (diff)
downloadayatana-indicator-session-3834947c6828ec4bcea7d941b1c28a8b9318f829.tar.gz
ayatana-indicator-session-3834947c6828ec4bcea7d941b1c28a8b9318f829.tar.bz2
ayatana-indicator-session-3834947c6828ec4bcea7d941b1c28a8b9318f829.zip
Merge branch 'sunweaver-pr/remove-superfluous-files'
Attributes GH PR #62: https://github.com/AyatanaIndicators/ayatana-indicator-session/pull/62
-rwxr-xr-xbuild.sh18
-rw-r--r--debian/copyright2
-rw-r--r--debian/copyright.in2
-rwxr-xr-xtrim-lcov.py57
4 files changed, 0 insertions, 79 deletions
diff --git a/build.sh b/build.sh
deleted file mode 100755
index b69687c..0000000
--- a/build.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#! /bin/bash
-set -e
-
-mkdir -p build
-
-if [ -f "/usr/bin/ninja" ] ; then
- EXTRA_ARGS="-G Ninja"
- BUILD_COMMAND="ninja"
-else
- BUILD_COMMAND="make"
-fi
-
-echo "Using $BUILD_COMMAND to build"
-(
- cd build
- cmake .. $EXTRA_ARGS -DCMAKE_INSTALL_PREFIX=../../install -DCMAKE_BUILD_TYPE=Debug
- $BUILD_COMMAND
-)
diff --git a/debian/copyright b/debian/copyright
index 41577e1..5b4b331 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -71,7 +71,6 @@ Files: CMakeLists.txt
NEWS
NEWS.Canonical
README
- build.sh
cmake/GCov.cmake
cmake/GdbusCodegen.cmake
cmake/Translations.cmake
@@ -108,7 +107,6 @@ Files: CMakeLists.txt
tests/org.ayatana.indicator.session.gschema.xml
tests/org.gnome.desktop.lockdown.gschema.xml
tests/org.gnome.settings-daemon.plugins.media-keys.gschema.xml
- trim-lcov.py
Copyright: 2012, Canonical Ltd.
2013, Canonical Ltd.
2014, Canonical Ltd.
diff --git a/debian/copyright.in b/debian/copyright.in
index 55eaa81..c2b8f39 100644
--- a/debian/copyright.in
+++ b/debian/copyright.in
@@ -72,7 +72,6 @@ Files: CMakeLists.txt
ChangeLog
NEWS.Canonical
README
- build.sh
cmake/GCov.cmake
cmake/GdbusCodegen.cmake
cmake/Translations.cmake
@@ -119,7 +118,6 @@ Files: CMakeLists.txt
tests/org.ayatana.indicator.session.gschema.xml
tests/org.gnome.desktop.lockdown.gschema.xml
tests/org.gnome.settings-daemon.plugins.media-keys.gschema.xml
- trim-lcov.py
update-pot.sh
Copyright: NONE
License: UNKNOWN
diff --git a/trim-lcov.py b/trim-lcov.py
deleted file mode 100755
index 2cd8dee..0000000
--- a/trim-lcov.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
-
-# This script removes branch and/or line coverage data for lines that
-# contain a particular substring.
-#
-# In the interest of "fairness" it removes all branch or coverage data
-# when a match is found -- not just negative data. It is therefore
-# likely that running this script will actually reduce the total number
-# of lines and branches that are marked as covered (in absolute terms).
-#
-# This script intentionally avoids checking for errors. Any exceptions
-# will trigger make to fail.
-#
-# Author: Ryan Lortie <desrt@desrt.ca>
-
-import sys
-
-line_suppress = ['g_assert_not_reached']
-branch_suppress = ['g_assert', 'g_return_if_fail', 'g_clear_object', 'g_clear_pointer', 'g_return_val_if_fail', 'G_DEFINE_TYPE']
-
-def check_suppress(suppressions, source, data):
- line, _, rest = data.partition(',')
- line = int(line) - 1
-
- assert line < len(source)
-
- for suppression in suppressions:
- if suppression in source[line]:
- return True
-
- return False
-
-source = []
-for line in sys.stdin:
- line = line[:-1]
-
- keyword, _, rest = line.partition(':')
-
- # Source file
- if keyword == 'SF':
-
- with open(rest, 'r') as pFile:
-
- source = pFile.readlines()
-
- # Branch coverage data
- elif keyword == 'BRDA':
- if check_suppress(branch_suppress, source, rest):
- continue
-
- # Line coverage data
- elif keyword == 'DA':
- if check_suppress(line_suppress, source, rest):
- continue
-
- print(line)