From 494607a15c5877dcf99c6b66206743a261f083d1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 4 Mar 2019 13:50:49 +0100 Subject: [PATCH] remove xopp-recording.sh it's not used anymore in releases > 1.0.7. --- CMakeLists.txt | 2 -- utility/usr/local/bin/xopp-recording.sh | 30 ------------------------- 2 files changed, 32 deletions(-) delete mode 100755 utility/usr/local/bin/xopp-recording.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a96e07e..27a16466 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -250,8 +250,6 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") install(FILES desktop/xournalpp.thumbnailer DESTINATION ${CMAKE_INSTALL_PREFIX}/share/thumbnailers) - install(PROGRAMS utility/usr/local/bin/xopp-recording.sh - DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/) install(CODE "execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/cmake/postinst configure)") diff --git a/utility/usr/local/bin/xopp-recording.sh b/utility/usr/local/bin/xopp-recording.sh deleted file mode 100755 index 38476ca5..00000000 --- a/utility/usr/local/bin/xopp-recording.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -if [[ $1 == "start" ]] && [[ $# -eq 2 ]] -then - filename=$(echo $2|rev|cut -d'/' -f1|rev) - directory=$(echo $2|rev|cut -d'/' -f2-|rev) - directory=$directory/ - vol=35 - - #exec &> ${directory}${filename}.log #debug - - if ! [ -d "$directory" ]; - then - mkdir -p "$directory" - fi - - notify-send "Recording started with ${vol}% gain" - amixer sset 'Capture' ${vol}% - amixer sset 'Master' 0% - dst="${directory}${filename}" - arecord -f cd -t wav |lame --preset 56 -mm - "$dst" & - #cvlc alsa://default --sout "#transcode{acodec=mp3,ab=128,channels=2, samplerate=44100}:duplicate{dst=std{access=file,mux=mp3,dst=\"$dst\"}}}" & - -elif [[ $1 == "stop" ]] -then - pkill -f "arecord" && notify-send "Recording stopped" - #killall vlc && notify-send "Recording stopped" -fi - -