parent
948e6d3f9d
commit
c50063bd35
@ -1 +1 @@
|
||||
DIST fcitx-cloudpinyin-0.2.1.tar.xz 18388 RMD160 f4f75b28e9f58a0e5e8abbeba3d13d52b6888b51 SHA1 6177441ededdaa1a16a31cc5db91499ac639e3f0 SHA256 548a08a2a1585c5dc13c5bf6116197203dafc2c475efdf5b6e57bdb900cb2cac
|
||||
DIST fcitx-cloudpinyin-0.2.2.tar.xz 18452 RMD160 4cf03ece48a1e96c6bc2cd2ceb05106efb761730 SHA1 b3ef012eae404586a9923e803c677cfecb81ea89 SHA256 1516b7f72d4ee6822f3b4e37df5d25343323f2ae0b9aca2c6d225878ff776101
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.2.1.ebuild,v 1.1 2012/05/18 02:00:49 qiaomuf Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.2.2.ebuild,v 1.1 2012/06/07 06:36:16 qiaomuf Exp $
|
||||
|
||||
EAPI=4
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST fcitx-configtool-0.1.4.tar.gz 234329 RMD160 3baa5dd74f5d331f2183f9444ac050d97f72f63f SHA1 01de43eb9fb8b7869e273205977d501b924b7c98 SHA256 9b69fa0a3fae57573729a3dde666baf03144fa3582c620f56f4bb0074bc717c3
|
||||
DIST fcitx-configtool-0.2.0.tar.gz 37435 RMD160 e40e9563160f9b8c9accc0da3b1b48411a58a184 SHA1 b670a171f49ed149098589f10db3bbf7dd546af5 SHA256 2c309f2df500cf7c1b0d13b446a69e3513a11588025a2f648b18b684cc2320fe
|
||||
DIST fcitx-configtool-0.4.1.tar.xz 33608 RMD160 d67837b2b6a81fbbd71e053b82f31d3dce65a52d SHA1 1c11a350536afe66233b8bc6f1c16acb82292b42 SHA256 7135d8ec94589f7c55741908a3292c8cf89c097479061b3a47ce4154d3a305c9
|
||||
DIST fcitx-configtool-0.4.3.tar.xz 34792 RMD160 a1c80a6306c0a9812b969399feceb5f982078b23 SHA1 8dd49c8670c6da06c9df9e4476271357593242d4 SHA256 0b8722da441acd3deb841f6b389b02499bc99f61a711ce57ad0cccae359a53b9
|
||||
DIST fcitx-configtool-0.4.4.tar.xz 37764 RMD160 cf58c5a032738ec9b2cf11249300253a32430835 SHA1 4f0305fca63b744664c23c2ec83e95bc09972ac0 SHA256 66cae23c1e1555a5e8e8cb8696e562b0b58d28e16d2f0b9c64a0f274a6c06745
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBI/DBI-1.622.0.ebuild,v 1.1 2012/06/07 06:27:41 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=TIMB
|
||||
MODULE_VERSION=1.622
|
||||
inherit perl-module eutils
|
||||
|
||||
DESCRIPTION="The Perl DBI Module"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-perl/PlRPC-0.2
|
||||
>=virtual/perl-Sys-Syslog-0.17
|
||||
virtual/perl-File-Spec"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=virtual/perl-Test-Simple-0.90 )"
|
||||
|
||||
SRC_TEST="do"
|
||||
mydoc="ToDo"
|
||||
MAKEOPTS="${MAKEOPTS} -j1"
|
@ -1,2 +1,3 @@
|
||||
DIST SVG-2.50.tar.gz 52322 RMD160 f067bc56d4dfa4840d8f1a2e8f1911fa03edda0f SHA1 c698e94ac2673f734b24ed56142e994ad350f440 SHA256 4a7d07746b3d7d9df36387dab18a93a66b457e29bf30de1891af3d208547a461
|
||||
DIST SVG-2.51.tar.gz 52590 RMD160 b826f6f8c642c85d6612939fe72e1eb1dbdb1413 SHA1 d6bd1101e4ffa6b2b54e8f7da218e463720e3db6 SHA256 1b9d5e30de094954a6480c24eaad1c5bcf0583f1f1cca510dc3f9e4dbd65665d
|
||||
DIST SVG-2.52.tar.gz 53809 RMD160 a2c8bf6d4f20fca30c1055429937200e521e43f9 SHA1 0cc6e3c6da74c8cba8da950ab8fae978e8d5753b SHA256 99c4086ea050cbca286f25be9f8f08353b9558d9620c584afdd3ff6843530aac
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/SVG/SVG-2.520.0.ebuild,v 1.1 2012/06/07 07:58:19 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=SZABGAB
|
||||
MODULE_VERSION=2.52
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl extension for generating Scalable Vector Graphics (SVG) documents"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="virtual/perl-parent"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-perl/Test-Pod-Coverage
|
||||
)"
|
||||
|
||||
SRC_TEST=do
|
@ -1 +1,2 @@
|
||||
DIST Sub-Exporter-0.982.tar.gz 53651 RMD160 0a9a97c8bc135e36b996ef1247ca9177a9590630 SHA1 3612afd39fd8a0e2f2b9168de8d2d51104208396 SHA256 722f86107110147b68be4df0d57597161cd30ab5f60e8f0d5f43f7320bc0c875
|
||||
DIST Sub-Exporter-0.984.tar.gz 42749 RMD160 bc6994083e69f1944f84841b682ab02baa37d6ab SHA1 38af7552654a3ab327c4bdf28614c37934027832 SHA256 0e60de14ae45ff4e601523540121e4e616e13cc4f6811dd809ee9f6d8fa718a4
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sub-Exporter/Sub-Exporter-0.984.0.ebuild,v 1.1 2012/06/07 06:26:20 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=RJBS
|
||||
MODULE_VERSION=0.984
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A sophisticated exporter for custom-built routines"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Sub-Install-0.920.0
|
||||
>=dev-perl/Data-OptList-0.100.0
|
||||
>=dev-perl/Params-Util-0.140.0
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
SRC_TEST=do
|
@ -1,2 +1,3 @@
|
||||
DIST Test-Warn-0.21.zip 19601 RMD160 65dca4a13d5360bfe922df8e52bf1a89bdb601c0 SHA1 654a9eb272ddd83fd4d1e6600a05490ce65f77c0 SHA256 af3296be90ec9e03ea0fb1b0f6e7850d449d0f6df69b236a003d47441f4d804d
|
||||
DIST Test-Warn-0.23.tar.gz 11316 RMD160 69e328e813108210e467c0b4a4583ebf4323f668 SHA1 242c801004d71d04ae68f7b402a535ab833056ac SHA256 c035679567d817e38979de9f071ea109c4bc76d85aee0db586a05ea2d3d0639c
|
||||
DIST Test-Warn-0.24.tar.gz 11804 RMD160 0d9317230c82526318d1cdb0f9c9fc9b641a133c SHA1 f27fea108e6b0e37ed7879be63bd651434ee058d SHA256 b4f6b60c158cb8405861ddd045247c31d75d8cd89cab77ef608f999a39ab218b
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Warn/Test-Warn-0.240.0.ebuild,v 1.1 2012/06/07 06:18:10 tove Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MODULE_AUTHOR=CHORNY
|
||||
MODULE_VERSION=0.24
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl extension to test methods for warnings"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-perl/Sub-Uplevel-0.12
|
||||
dev-perl/Tree-DAG_Node
|
||||
virtual/perl-Test-Simple
|
||||
virtual/perl-File-Spec"
|
||||
DEPEND="test? ( ${RDEPEND}
|
||||
dev-perl/Test-Pod )"
|
||||
|
||||
SRC_TEST="do"
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex-beamer/latex-beamer-3.20.ebuild,v 1.1 2012/06/07 05:03:23 radhermit Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit latex-package
|
||||
|
||||
DESCRIPTION="LaTeX class for creating presentations using a video projector"
|
||||
HOMEPAGE="http://bitbucket.org/rivanvx/beamer/wiki/Home"
|
||||
SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.zip"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.2 LPPL-1.3c"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples lyx"
|
||||
|
||||
DEPEND="app-arch/unzip
|
||||
lyx? ( app-office/lyx )
|
||||
dev-texlive/texlive-latex"
|
||||
RDEPEND=">=dev-tex/pgf-1.10
|
||||
dev-tex/xcolor
|
||||
!dev-tex/translator"
|
||||
|
||||
S=${WORKDIR}/beamer
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/texmf-site/tex/latex/beamer
|
||||
doins -r base
|
||||
|
||||
if use lyx ; then
|
||||
insinto /usr/share/lyx/examples
|
||||
doins examples/lyx-based-presentation/*
|
||||
fi
|
||||
|
||||
dodoc AUTHORS ChangeLog README TODO doc/licenses/LICENSE
|
||||
|
||||
if use doc ; then
|
||||
docinto doc
|
||||
dodoc -r doc/*
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
rm -f "${S}"/examples/a-lecture/{*.tex~,._beamerexample-lecture-pic*}
|
||||
if ! use lyx ; then
|
||||
einfo "Removing lyx examples as lyx useflag is not set"
|
||||
find "${S}" -name "*.lyx" -print -delete
|
||||
fi
|
||||
dodoc -r examples solutions
|
||||
fi
|
||||
}
|
@ -0,0 +1,224 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/eclass/multiprocessing.eclass,v 1.1 2012/06/07 04:59:40 vapier Exp $
|
||||
|
||||
# @ECLASS: multiprocessing.eclass
|
||||
# @MAINTAINER:
|
||||
# base-system@gentoo.org
|
||||
# @AUTHOR:
|
||||
# Brian Harring <ferringb@gentoo.org>
|
||||
# Mike Frysinger <vapier@gentoo.org>
|
||||
# @BLURB: parallelization with bash (wtf?)
|
||||
# @DESCRIPTION:
|
||||
# The multiprocessing eclass contains a suite of functions that allow ebuilds
|
||||
# to quickly run things in parallel using shell code.
|
||||
#
|
||||
# It has two modes: pre-fork and post-fork. If you don't want to dive into any
|
||||
# more nuts & bolts, just use the pre-fork mode. For main threads that mostly
|
||||
# spawn children and then wait for them to finish, use the pre-fork mode. For
|
||||
# main threads that do a bit of processing themselves, use the post-fork mode.
|
||||
# You may mix & match them for longer computation loops.
|
||||
# @EXAMPLE:
|
||||
#
|
||||
# @CODE
|
||||
# # First initialize things:
|
||||
# multijob_init
|
||||
#
|
||||
# # Then hash a bunch of files in parallel:
|
||||
# for n in {0..20} ; do
|
||||
# multijob_child_init md5sum data.${n} > data.${n}
|
||||
# done
|
||||
#
|
||||
# # Then wait for all the children to finish:
|
||||
# multijob_finish
|
||||
# @CODE
|
||||
|
||||
if [[ ${___ECLASS_ONCE_MULTIPROCESSING} != "recur -_+^+_- spank" ]] ; then
|
||||
___ECLASS_ONCE_MULTIPROCESSING="recur -_+^+_- spank"
|
||||
|
||||
# @FUNCTION: makeopts_jobs
|
||||
# @USAGE: [${MAKEOPTS}]
|
||||
# @DESCRIPTION:
|
||||
# Searches the arguments (defaults to ${MAKEOPTS}) and extracts the jobs number
|
||||
# specified therein. Useful for running non-make tools in parallel too.
|
||||
# i.e. if the user has MAKEOPTS=-j9, this will echo "9" -- we can't return the
|
||||
# number as bash normalizes it to [0, 255]. If the flags haven't specified a
|
||||
# -j flag, then "1" is shown as that is the default `make` uses. Since there's
|
||||
# no way to represent infinity, we return 999 if the user has -j without a number.
|
||||
makeopts_jobs() {
|
||||
[[ $# -eq 0 ]] && set -- ${MAKEOPTS}
|
||||
# This assumes the first .* will be more greedy than the second .*
|
||||
# since POSIX doesn't specify a non-greedy match (i.e. ".*?").
|
||||
local jobs=$(echo " $* " | sed -r -n \
|
||||
-e 's:.*[[:space:]](-j|--jobs[=[:space:]])[[:space:]]*([0-9]+).*:\2:p' \
|
||||
-e 's:.*[[:space:]](-j|--jobs)[[:space:]].*:999:p')
|
||||
echo ${jobs:-1}
|
||||
}
|
||||
|
||||
# @FUNCTION: multijob_init
|
||||
# @USAGE: [${MAKEOPTS}]
|
||||
# @DESCRIPTION:
|
||||
# Setup the environment for executing code in parallel.
|
||||
# You must call this before any other multijob function.
|
||||
multijob_init() {
|
||||
# When something goes wrong, try to wait for all the children so we
|
||||
# don't leave any zombies around.
|
||||
has wait ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" wait"
|
||||
|
||||
# Setup a pipe for children to write their pids to when they finish.
|
||||
local pipe="${T}/multijob.pipe"
|
||||
mkfifo "${pipe}"
|
||||
redirect_alloc_fd mj_control_fd "${pipe}"
|
||||
rm -f "${pipe}"
|
||||
|
||||
# See how many children we can fork based on the user's settings.
|
||||
mj_max_jobs=$(makeopts_jobs "$@")
|
||||
mj_num_jobs=0
|
||||
}
|
||||
|
||||
# @FUNCTION: multijob_child_init
|
||||
# @USAGE: [--pre|--post] [command to run in background]
|
||||
# @DESCRIPTION:
|
||||
# This function has two forms. You can use it to execute a simple command
|
||||
# in the background (and it takes care of everything else), or you must
|
||||
# call this first thing in your forked child process.
|
||||
#
|
||||
# The --pre/--post options allow you to select the child generation mode.
|
||||
#
|
||||
# @CODE
|
||||
# # 1st form: pass the command line as arguments:
|
||||
# multijob_child_init ls /dev
|
||||
# # Or if you want to use pre/post fork modes:
|
||||
# multijob_child_init --pre ls /dev
|
||||
# multijob_child_init --post ls /dev
|
||||
#
|
||||
# # 2nd form: execute multiple stuff in the background (post fork):
|
||||
# (
|
||||
# multijob_child_init
|
||||
# out=`ls`
|
||||
# if echo "${out}" | grep foo ; then
|
||||
# echo "YEAH"
|
||||
# fi
|
||||
# ) &
|
||||
# multijob_post_fork
|
||||
#
|
||||
# # 2nd form: execute multiple stuff in the background (pre fork):
|
||||
# multijob_pre_fork
|
||||
# (
|
||||
# multijob_child_init
|
||||
# out=`ls`
|
||||
# if echo "${out}" | grep foo ; then
|
||||
# echo "YEAH"
|
||||
# fi
|
||||
# ) &
|
||||
# @CODE
|
||||
multijob_child_init() {
|
||||
local mode="pre"
|
||||
case $1 in
|
||||
--pre) mode="pre" ; shift ;;
|
||||
--post) mode="post"; shift ;;
|
||||
esac
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
trap 'echo ${BASHPID} $? >&'${mj_control_fd} EXIT
|
||||
trap 'exit 1' INT TERM
|
||||
else
|
||||
local ret
|
||||
[[ ${mode} == "pre" ]] && { multijob_pre_fork; ret=$?; }
|
||||
( multijob_child_init ; "$@" ) &
|
||||
[[ ${mode} == "post" ]] && { multijob_post_fork; ret=$?; }
|
||||
return ${ret}
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: _multijob_fork
|
||||
# @INTERNAL
|
||||
# @DESCRIPTION:
|
||||
# Do the actual book keeping.
|
||||
_multijob_fork() {
|
||||
[[ $# -eq 1 ]] || die "incorrect number of arguments"
|
||||
|
||||
local ret=0
|
||||
[[ $1 == "post" ]] && : $(( ++mj_num_jobs ))
|
||||
if [[ ${mj_num_jobs} -ge ${mj_max_jobs} ]] ; then
|
||||
multijob_finish_one
|
||||
ret=$?
|
||||
fi
|
||||
[[ $1 == "pre" ]] && : $(( ++mj_num_jobs ))
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
# @FUNCTION: multijob_pre_fork
|
||||
# @DESCRIPTION:
|
||||
# You must call this in the parent process before forking a child process.
|
||||
# If the parallel limit has been hit, it will wait for one child to finish
|
||||
# and return its exit status.
|
||||
multijob_pre_fork() { _multijob_fork pre "$@" ; }
|
||||
|
||||
# @FUNCTION: multijob_post_fork
|
||||
# @DESCRIPTION:
|
||||
# You must call this in the parent process after forking a child process.
|
||||
# If the parallel limit has been hit, it will wait for one child to finish
|
||||
# and return its exit status.
|
||||
multijob_post_fork() { _multijob_fork post "$@" ; }
|
||||
|
||||
# @FUNCTION: multijob_finish_one
|
||||
# @DESCRIPTION:
|
||||
# Wait for a single process to exit and return its exit code.
|
||||
multijob_finish_one() {
|
||||
[[ $# -eq 0 ]] || die "${FUNCNAME} takes no arguments"
|
||||
|
||||
local pid ret
|
||||
read -r -u ${mj_control_fd} pid ret || die
|
||||
: $(( --mj_num_jobs ))
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
# @FUNCTION: multijob_finish
|
||||
# @DESCRIPTION:
|
||||
# Wait for all pending processes to exit and return the bitwise or
|
||||
# of all their exit codes.
|
||||
multijob_finish() {
|
||||
local ret=0
|
||||
while [[ ${mj_num_jobs} -gt 0 ]] ; do
|
||||
multijob_finish_one
|
||||
: $(( ret |= $? ))
|
||||
done
|
||||
# Let bash clean up its internal child tracking state.
|
||||
wait
|
||||
|
||||
# Do this after reaping all the children.
|
||||
[[ $# -eq 0 ]] || die "${FUNCNAME} takes no arguments"
|
||||
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
# @FUNCTION: redirect_alloc_fd
|
||||
# @USAGE: <var> <file> [redirection]
|
||||
# @DESCRIPTION:
|
||||
# Find a free fd and redirect the specified file via it. Store the new
|
||||
# fd in the specified variable. Useful for the cases where we don't care
|
||||
# about the exact fd #.
|
||||
redirect_alloc_fd() {
|
||||
local var=$1 file=$2 redir=${3:-"<>"}
|
||||
|
||||
if [[ $(( (BASH_VERSINFO[0] << 8) + BASH_VERSINFO[1] )) -ge $(( (4 << 8) + 1 )) ]] ; then
|
||||
# Newer bash provides this functionality.
|
||||
eval "exec {${var}}${redir}'${file}'"
|
||||
else
|
||||
# Need to provide the functionality ourselves.
|
||||
local fd=10
|
||||
while :; do
|
||||
# Make sure the fd isn't open. It could be a char device,
|
||||
# or a symlink (possibly broken) to something else.
|
||||
if [[ ! -e /dev/fd/${fd} ]] && [[ ! -L /dev/fd/${fd} ]] ; then
|
||||
eval "exec ${fd}${redir}'${file}'" && break
|
||||
fi
|
||||
[[ ${fd} -gt 1024 ]] && die 'could not locate a free temp fd !?'
|
||||
: $(( ++fd ))
|
||||
done
|
||||
: $(( ${var} = fd ))
|
||||
fi
|
||||
}
|
||||
|
||||
fi
|
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
source tests-common.sh
|
||||
|
||||
inherit multiprocessing
|
||||
|
||||
tbegin "simple"
|
||||
MAKEOPTS="-j1" multijob_init
|
||||
multijob_child_init ls -d / >/dev/null || die "fail!"
|
||||
multijob_finish
|
||||
tend $?
|
||||
|
||||
tbegin "less simple"
|
||||
multijob_init -j3
|
||||
multijob_child_init true || die "fail!"
|
||||
multijob_child_init false || die "fail!"
|
||||
multijob_child_init true || die "fail!"
|
||||
multijob_finish
|
||||
tend $(( $? == 1 ? 0 : 1 ))
|
||||
|
||||
tbegin "less less simple"
|
||||
multijob_init -j1
|
||||
multijob_child_init true || die "fail!"
|
||||
multijob_child_init false || die "fail!"
|
||||
multijob_child_init true && die "fail!"
|
||||
multijob_finish
|
||||
tend $?
|
||||
|
||||
tbegin "less less less simple"
|
||||
multijob_init -j10
|
||||
multijob_child_init true || die "fail!"
|
||||
multijob_finish_one || die "fail!"
|
||||
multijob_child_init false || die "fail!"
|
||||
multijob_finish_one && die "fail!"
|
||||
multijob_child_init true || die "fail!"
|
||||
multijob_finish_one || die "fail!"
|
||||
multijob_finish
|
||||
tend $?
|
||||
|
||||
texit
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue