summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-04-29 16:13:43 +0200
committerlassulus <lass@aidsballs.de>2016-04-29 16:13:43 +0200
commit24458886a38bb581554278bdb448994d856705c2 (patch)
treef743c387e322a9654ad50e94a5b8e340feaf926f /Makefile
parent0a8e6664e2a73327ff056bdf508a18a930a9256a (diff)
Makefile: add addorphans
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7edebe3..640bf9a 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ check: ## make download should be run first
reversecheck: ## check for orphan files in directory
ls music/* | xargs -n1 bin/checkMissingLink
+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
+
checkmp3: ## check for missing songs
checkmp3: ## make download should be run first
cat links | musicDir=./mp3 xargs -n1 bin/checkMissingmp3