summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-05-22 21:19:50 +0200
committerlassulus <lass@aidsballs.de>2016-05-22 21:19:50 +0200
commit23daabe3cbade5bdff3667c4df157c0480b307e8 (patch)
treedcce333c1de70e288413159abc0584c61bb994d9
parent612d898c6316dd903c224da663840f7a671532ce (diff)
Makefile: add deleteorphans
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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