From 23daabe3cbade5bdff3667c4df157c0480b307e8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 22 May 2016 21:19:50 +0200 Subject: Makefile: add deleteorphans --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 11ff86f..1065b05 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ reversecheck: ## check for orphan files in directory addorphans: ## add orphan files to links ls music/* | xargs -n1 bin/checkMissingLink | sed 's,.*\(.\{11\}\)\.ogg,http://www.youtube.com/watch?v=\1,' | xargs -n1 youtplaylist >> links +deleteorphans: + ls music/* | xargs -n1 bin/checkMissingLink | xargs rm + checkmp3: ## check for missing songs checkmp3: ## make download should be run first cat links | musicDir=./mp3 xargs -n1 bin/checkMissingmp3 -- cgit v1.2.3