2011-05-08 14:46:21 danielsh_at_apache.org napisaĆ(a):
> Author: danielsh
> Date: Sun May 8 12:46:20 2011
> New Revision: 1100726
>
> URL: http://svn.apache.org/viewvc?rev=1100726&view=rev
> Log:
> More portability fixes. Drop xargs and don't depend on seq(1).
>
> * tools/dev/benchmarks/large_dirs/create_bigdir.sh
> (get_sequence): New wrapper around jot/seq/python.
> (main loop): Use it instead of seq and xargs.
>
> Modified:
> subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh
>
> Modified: subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh
> URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh?rev=1100726&r1=1100725&r2=1100726&view=diff
> ==============================================================================
> --- subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh (original)
> +++ subversion/trunk/tools/dev/benchmarks/large_dirs/create_bigdir.sh Sun May 8 12:46:20 2011
> @@ -99,6 +99,13 @@ echo
> rm -rf $WC
> ${SVN} co $URL $WC > /dev/null
>
> +# helpers
> +
> +get_sequence() {
> + # three equivalents...
> + (jot - "$1" "$2" "1" 2>/dev/null || seq -s ' ' "$1" "$2" 2>/dev/null || python -c "for i in range($1,$2+1): print i")
http://www.archlinux.org/news/python-is-now-python-3/
(I heard that such a change will occur also in Gentoo in 2011.)
--
Arfrever Frehtes Taifersar Arahesis
Received on 2011-05-09 00:12:04 CEST