From 94791c7f4f6c95dc9306022556fe93622d5b514e Mon Sep 17 00:00:00 2001 From: q3aql Date: Wed, 8 Feb 2023 19:34:33 +0100 Subject: [PATCH] Update Makefile --- Makefile | 9 ------ src/ks-tools-ffmpeg-av.sh | 61 --------------------------------------- 2 files changed, 70 deletions(-) delete mode 100755 src/ks-tools-ffmpeg-av.sh diff --git a/Makefile b/Makefile index 4dbf6a9..46003b7 100755 --- a/Makefile +++ b/Makefile @@ -5,8 +5,6 @@ PREFIX=/usr install: - cp -rf src/ks-tools-ffmpeg-av.sh $(PREFIX)/bin/ks-tools-ffmpeg-av.sh - chmod +x $(PREFIX)/bin/ks-tools-ffmpeg-av.sh cp -rf src/ks-upv $(PREFIX)/bin/ks-upv chmod +x $(PREFIX)/bin/ks-upv cp -rf src/ks-upa $(PREFIX)/bin/ks-upa @@ -56,13 +54,10 @@ install: mkdir -p $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools-rc $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools $(PREFIX)/share/ks-tools - cp -rf prompt/ks-tools-zui $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.svg $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.desktop $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.desktop $(PREFIX)/share/applications - cp -rf prompt/ks-tools-zui.desktop $(PREFIX)/share/ks-tools chmod +x $(PREFIX)/share/ks-tools/ks-tools - chmod +x $(PREFIX)/share/ks-tools/ks-tools-zui install-cygwin: cp -rf src/ks-upv $(PREFIX)/bin/ks-upv @@ -309,13 +304,10 @@ compile-install: mkdir -p $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools-rc $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools $(PREFIX)/share/ks-tools - cp -rf prompt/ks-tools-zui $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.svg $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.desktop $(PREFIX)/share/ks-tools cp -rf prompt/ks-tools.desktop $(PREFIX)/share/applications - cp -rf prompt/ks-tools-zui.desktop $(PREFIX)/share/ks-tools chmod +x $(PREFIX)/share/ks-tools/ks-tools - chmod +x $(PREFIX)/share/ks-tools/ks-tools-zui compile-clean: rm -rf build/ks-avi @@ -342,7 +334,6 @@ compile-clean: rm -rf build/ks-vob-wrapper uninstall: - rm -rf $(PREFIX)/bin/ks-tools-ffmpeg-av.sh rm -rf $(PREFIX)/bin/ks-upv rm -rf $(PREFIX)/bin/ks-upa rm -rf $(PREFIX)/bin/ks-upf diff --git a/src/ks-tools-ffmpeg-av.sh b/src/ks-tools-ffmpeg-av.sh deleted file mode 100755 index ebe5624..0000000 --- a/src/ks-tools-ffmpeg-av.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -############################################################## -# ks-tools adapter to use ffmpeg-av # -# Last change: 08-06-2022 # -# Author: q3aql # -# Contact: q3aql@duck.com # -# License: GPL v2.0 # -############################################################## -M_DATE="2022.04.08" - -# Commands will be adapted for ffmpeg-av -kstools_commands="ks-mp4 ks-mp4s ks-mp4k ks-avi ks-vob ks-oga ks-oga-album ks-mp3 ks-mp3-album ks-mix ks-crop ks-mp4-wrapper ks-mp4s-wrapper ks-avi-wrapper ks-vob-wrapper" - -# Function to check admin permissions -function checkAdminPerm() { - mkdir -p /etc/root &> /dev/null - administrador=$? - if [ ${administrador} -eq 0 ] ; then - rm -rf /etc/root - else - echo "" - echo "# ks-tools with ffmpeg-av adapter ${M_DATE}" - echo "" - echo "# Administrator permissions are required." - echo "" - exit - fi -} - -# Check if ffmpeg-av is installed -checkAdminPerm -if [ -f /usr/bin/ffmpeg-av ] ; then - echo "" - echo "# ffmpeg-av detected" -else - echo "" - echo "# ffmpeg-av not detected" - echo "" - exit -fi - -# Run function to change for ffmpeg-av -for file_command in ${kstools_commands} ; do - if [ -f /usr/bin/${file_command} ] ; then - check_previous=$(cat /usr/bin/${file_command} | grep "ffmpeg-av") - if [ -z "${check_previous}" ] ; then - sed -i "s/ffmpeg -y/ffmpeg-av -y/g" /usr/bin/${file_command} - sed -i "s/ffmpeg -i/ffmpeg-av -i/g" /usr/bin/${file_command} - sed -i "s/ffmpeg --help/ffmpeg-av --help/g" /usr/bin/${file_command} - sed -i "s/The 'ffmpeg' tool/The 'ffmpeg-av' tool/g" /usr/bin/${file_command} - echo "# ${file_command} linked to ffmpeg-av" - else - echo "# ${file_command} already linked to ffmpeg-av" - fi - fi -done -echo "# Done" -echo "" -exit -