lamer: added piped find to sort, removed trailing whitespaces
authorHarvie <tomas@mudrunka.cz>
Fri, 27 Aug 2010 22:12:47 +0000 (00:12 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 27 Aug 2010 22:12:47 +0000 (00:12 +0200)
bash/lame-recoder/PKGBUILD
bash/lame-recoder/lamer.bash

index 8ba0e1cffe5cd27074b8e2f3687ade03ec215bbb..f3a65c1ea60a02ded3d83fb6d126c0d1ba0823f5 100644 (file)
@@ -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
index da3b225583f2d861c339f5e059f12518fef70386..ff0602e74380dfd45ef46dcaf3ee912abfd48b2b 100755 (executable)
@@ -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/ )'
This page took 0.153006 seconds and 4 git commands to generate.