From 42063e957389c8cded06d6bf8aa93439d43ef4e4 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sat, 28 Aug 2010 00:12:47 +0200 Subject: [PATCH] lamer: added piped find to sort, removed trailing whitespaces --- bash/lame-recoder/PKGBUILD | 2 +- bash/lame-recoder/lamer.bash | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/lame-recoder/PKGBUILD b/bash/lame-recoder/PKGBUILD index 8ba0e1c..f3a65c1 100644 --- a/bash/lame-recoder/PKGBUILD +++ b/bash/lame-recoder/PKGBUILD @@ -11,7 +11,7 @@ license=('GPL') url="http://aur.archlinux.org/packages.php?ID=35983" depends=('bash' 'lame') source=('lamer.bash') -md5sums=('a77180ca36dfb966df860541734f5474') +md5sums=('bca80a816f4598f4afb917088f34d95b') build() { mkdir -p ${pkgdir}/usr/bin diff --git a/bash/lame-recoder/lamer.bash b/bash/lame-recoder/lamer.bash index da3b225..ff0602e 100755 --- a/bash/lame-recoder/lamer.bash +++ b/bash/lame-recoder/lamer.bash @@ -82,11 +82,11 @@ encode() { tsign " Done: '$infile'; retval=$?"; } -echo "==> I will use $cpus CPU cores"; +echo "==> I will use $cpus CPU cores"; export -f encode; export quality outdir lamelog -find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' -- +find -regextype posix-egrep -iregex '.*'"$filetypes" | grep -v /"$outdir" | sort -n | tr '\r\n' '\0\0' | xargs -0 -n 1 -P "$cpus" bash -c 'encode "$@"' -- echo ' -==> All files were processed. +==> All files were processed. ==> But you should rather check them before deleting the originals... ==> Thank you for using lame-recursive by Harvie ( http://blog.harvie.cz/ )' -- 2.30.2