From: Harvie Date: Fri, 27 Aug 2010 22:12:47 +0000 (+0200) Subject: lamer: added piped find to sort, removed trailing whitespaces X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=42063e957389c8cded06d6bf8aa93439d43ef4e4;p=mirrors%2FPrograms.git lamer: added piped find to sort, removed trailing whitespaces --- 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/ )'