mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-24 15:07:55 +00:00
Packaged for old RedHats and SuSEs.
This commit is contained in:
parent
60b88c9f3d
commit
2ae4b179ac
16
Makefile.am
16
Makefile.am
|
@ -167,12 +167,20 @@ pack_unpack_and_test_build:
|
||||||
cd parallel-$(YYYYMMDD) && \
|
cd parallel-$(YYYYMMDD) && \
|
||||||
./configure && make -j && sudo make -j install
|
./configure && make -j && sudo make -j install
|
||||||
|
|
||||||
zshcompletiondir=${datarootdir}/zsh/site-functions
|
# This ought to be correct, but fails on Centos
|
||||||
|
# bashcompletiondir=$(DESTDIR)${datarootdir}/bash-completion/completions
|
||||||
|
# zshcompletiondir=$(DESTDIR)${datarootdir}/zsh/site-functions
|
||||||
|
bashcompletiondir=$(DESTDIR)${prefix}/share/bash-completion/completions
|
||||||
|
zshcompletiondir=$(DESTDIR)${prefix}/share/zsh/site-functions
|
||||||
|
bashcompletion=${bashcompletiondir}/parallel
|
||||||
zshcompletion=${zshcompletiondir}/_parallel
|
zshcompletion=${zshcompletiondir}/_parallel
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
mkdir -p ${datarootdir}/bash-completion/completions
|
mkdir -p ${zshcompletiondir} ${bashcompletiondir}
|
||||||
mkdir -p ${zshcompletiondir}
|
src/parallel --shell-completion bash > ${bashcompletion}
|
||||||
parallel --shell-completion bash > ${datarootdir}/bash-completion/completions/parallel
|
# Make zsh eval the --shell-completion code dynamically so if
|
||||||
|
# a newer version of GNU Parallel is installed by a normal
|
||||||
|
# user, this newer version will generate the
|
||||||
|
# --shell-completion code.
|
||||||
echo '#compdef parallel' > ${zshcompletion}
|
echo '#compdef parallel' > ${zshcompletion}
|
||||||
echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
|
echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
|
||||||
echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
|
echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
|
||||||
|
|
17
Makefile.in
17
Makefile.in
|
@ -281,7 +281,13 @@ top_build_prefix = @top_build_prefix@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
zshcompletiondir = ${datarootdir}/zsh/site-functions
|
|
||||||
|
# This ought to be correct, but fails on Centos
|
||||||
|
# bashcompletiondir=$(DESTDIR)${datarootdir}/bash-completion/completions
|
||||||
|
# zshcompletiondir=$(DESTDIR)${datarootdir}/zsh/site-functions
|
||||||
|
bashcompletiondir = $(DESTDIR)${prefix}/share/bash-completion/completions
|
||||||
|
zshcompletiondir = $(DESTDIR)${prefix}/share/zsh/site-functions
|
||||||
|
bashcompletion = ${bashcompletiondir}/parallel
|
||||||
zshcompletion = ${zshcompletiondir}/_parallel
|
zshcompletion = ${zshcompletiondir}/_parallel
|
||||||
EXTRA_DIST = CITATION CITATION.cff CREDITS LICENSES/CC-BY-SA-4.0.txt LICENSES/GFDL-1.3-or-later.txt LICENSES/GPL-3.0-or-later.txt
|
EXTRA_DIST = CITATION CITATION.cff CREDITS LICENSES/CC-BY-SA-4.0.txt LICENSES/GFDL-1.3-or-later.txt LICENSES/GPL-3.0-or-later.txt
|
||||||
all: config.h
|
all: config.h
|
||||||
|
@ -929,9 +935,12 @@ pack_unpack_and_test_build:
|
||||||
cd parallel-$(YYYYMMDD) && \
|
cd parallel-$(YYYYMMDD) && \
|
||||||
./configure && make -j && sudo make -j install
|
./configure && make -j && sudo make -j install
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
mkdir -p ${datarootdir}/bash-completion/completions
|
mkdir -p ${zshcompletiondir} ${bashcompletiondir}
|
||||||
mkdir -p ${zshcompletiondir}
|
src/parallel --shell-completion bash > ${bashcompletion}
|
||||||
parallel --shell-completion bash > ${datarootdir}/bash-completion/completions/parallel
|
# Make zsh eval the --shell-completion code dynamically so if
|
||||||
|
# a newer version of GNU Parallel is installed by a normal
|
||||||
|
# user, this newer version will generate the
|
||||||
|
# --shell-completion code.
|
||||||
echo '#compdef parallel' > ${zshcompletion}
|
echo '#compdef parallel' > ${zshcompletion}
|
||||||
echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
|
echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
|
||||||
echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
|
echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
|
||||||
|
|
|
@ -4,6 +4,12 @@
|
||||||
|
|
||||||
Quote of the month:
|
Quote of the month:
|
||||||
|
|
||||||
|
Gnu parallel is indeed slick. I always try to align my data to make it possible to loop over it with a nice for loop added in a call to run the jobs in parallel then becomes super easy. I love the {1..99} syntax in bash.
|
||||||
|
-- ragsofx
|
||||||
|
|
||||||
|
The syntax for GNU Parallel is so slick that I often use it just to make my script read nicer, and the parallelism is a cherry on top.
|
||||||
|
-- Epistaxis@reddit
|
||||||
|
|
||||||
xargs諦めてGNU Parallel使ったら一瞬で問題が解決したので終わり
|
xargs諦めてGNU Parallel使ったら一瞬で問題が解決したので終わり
|
||||||
-- aria_moto @moto_aria@twitter
|
-- aria_moto @moto_aria@twitter
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ make alphaupload
|
||||||
. .last-doitag.txt
|
. .last-doitag.txt
|
||||||
cd ~/privat/parallel/packager/obs
|
cd ~/privat/parallel/packager/obs
|
||||||
|
|
||||||
find home:tange/parallel/* -type f |
|
find home-tange/parallel/* -type f |
|
||||||
grep -Ev '(PKGBUILD|parallel.spec)' |
|
grep -Ev '(PKGBUILD|parallel.spec)' |
|
||||||
parallel -j1 'osc rm {} || rm {}'
|
parallel -j1 'osc rm {} || rm {}'
|
||||||
# This should not create new files
|
# This should not create new files
|
||||||
|
@ -254,29 +254,26 @@ from:tange@gnu.org
|
||||||
to:parallel@gnu.org, bug-parallel@gnu.org
|
to:parallel@gnu.org, bug-parallel@gnu.org
|
||||||
stable-bcc: Jesse Alama <jessealama@fastmail.fm>
|
stable-bcc: Jesse Alama <jessealama@fastmail.fm>
|
||||||
|
|
||||||
Subject: GNU Parallel 20220522 ('NATO') released
|
Subject: GNU Parallel 20220722 ('Roe vs Wade/EU candidate/Oslo/Matapour/Kremenchuk') released
|
||||||
|
|
||||||
GNU Parallel 20220522 ('NATO') has been released. It is available for download at: lbry://@GnuParallel:4
|
GNU Parallel 20220722 ('Roe vs Wade') has been released. It is available for download at: lbry://@GnuParallel:4
|
||||||
|
|
||||||
Quote of the month:
|
Quote of the month:
|
||||||
|
|
||||||
Parallel has been (and still is) super useful and simple tool for speeding up all kinds of shell tasks during my career.
|
<<>>
|
||||||
-- ValtteriL@ycombinator
|
|
||||||
|
|
||||||
New in this release:
|
New in this release:
|
||||||
|
|
||||||
* , can be used in --sshlogin if quoted as \, or ,,
|
<<>>
|
||||||
|
|
||||||
* --plus {/#regexp/str} replace ^regexp with str.
|
|
||||||
|
|
||||||
* --plus {/%regexp/str} replace regexp$ with str.
|
|
||||||
|
|
||||||
* --plus {//regexp/str} replace every regexp with str.
|
|
||||||
|
|
||||||
* 'make install' installs bash+zsh completion files.
|
|
||||||
|
|
||||||
* Bug fixes and man page updates.
|
* Bug fixes and man page updates.
|
||||||
|
|
||||||
|
News about GNU Parallel:
|
||||||
|
|
||||||
|
<<>>
|
||||||
|
https://www.centrefornetzero.org/wp-content/uploads/2022/05/ABM-Report-Final.pdf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
GNU Parallel - For people who live life in the parallel lane.
|
GNU Parallel - For people who live life in the parallel lane.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<directory name="parallel" rev="328" vrev="2" srcmd5="4bc4f3b4485f9caf2e4fb4f339917564">
|
<directory name="parallel" rev="340" vrev="14" srcmd5="818fe88cc79f1f693857cbf17c0cab6d">
|
||||||
<entry name="PKGBUILD" md5="22c1acdb651034b1d1636e9f78faded9" size="1070" mtime="1655879579" />
|
<entry name="PKGBUILD" md5="085ea1eab1b3a25cde57eb69d98c4ebd" size="1070" mtime="1656697399" />
|
||||||
<entry name="parallel-20220622.tar.bz2" md5="6b189242185b5b550ce98c9cf88bdd27" size="2378286" mtime="1655879584" />
|
<entry name="parallel-20220622.tar.bz2" md5="e330d251d143e78261152a1bc9ba49b7" size="2395628" mtime="1656697582" />
|
||||||
<entry name="parallel.spec" md5="1ffb17b2aeda963562da6e6461e83c1d" size="5713" mtime="1655878836" />
|
<entry name="parallel.spec" md5="4b068b20e87f0f383d57b5af349228b3" size="5965" mtime="1656697583" />
|
||||||
<entry name="parallel_20220522.dsc" md5="eaa20305eb8b4af2b004225b3a93cdd4" size="556" mtime="1655878837" />
|
<entry name="parallel_20220622.dsc" md5="c7185ac8ad5afbdfc66cd3c9ede085c1" size="556" mtime="1656696822" />
|
||||||
<entry name="parallel_20220522.tar.gz" md5="49ce83ed2b11c54d17d7b25e12267101" size="2629819" mtime="1655878845" />
|
<entry name="parallel_20220622.tar.gz" md5="d45944d9caef1e5ed33f723827e2564f" size="2626563" mtime="1656696826" />
|
||||||
</directory>
|
</directory>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Summary: Shell tool for executing jobs in parallel
|
Summary: Shell tool for executing jobs in parallel
|
||||||
Name: parallel
|
Name: parallel
|
||||||
Version: 20220622
|
Version: 20220622
|
||||||
Release: 1.3
|
Release: 2.2
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/File utilities
|
Group: Productivity/File utilities
|
||||||
URL: ftp://ftp.gnu.org/gnu/parallel
|
URL: ftp://ftp.gnu.org/gnu/parallel
|
||||||
|
@ -112,11 +112,19 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/usr/bin/*
|
/usr/bin/*
|
||||||
|
/usr/share/bash-completion
|
||||||
|
/usr/share/bash-completion/completions
|
||||||
|
/usr/share/bash-completion/completions/parallel
|
||||||
|
/usr/share/zsh
|
||||||
|
/usr/share/zsh/site-functions
|
||||||
|
/usr/share/zsh/site-functions/_parallel
|
||||||
/usr/share/man/man1/*
|
/usr/share/man/man1/*
|
||||||
/usr/share/man/man7/*
|
/usr/share/man/man7/*
|
||||||
%doc README NEWS src/parallel.html src/env_parallel.html src/parallel_tutorial.html src/parallel_design.html src/parallel_alternatives.html src/parallel_book.html src/sem.html src/sql.html src/parcat.html src/parset.html src/parsort.html src/niceload.html src/parallel.texi src/env_parallel.texi src/parallel_tutorial.texi src/parallel_design.texi src/parallel_alternatives.texi src/parallel_book.texi src/niceload.texi src/sem.texi src/sql.texi src/parcat.texi src/parset.texi src/parsort.texi src/parallel.pdf src/env_parallel.pdf src/parallel_tutorial.pdf src/parallel_design.pdf src/parallel_alternatives.pdf src/parallel_book.pdf src/niceload.pdf src/sem.pdf src/sql.pdf src/parcat.pdf src/parset.pdf src/parsort.pdf src/parallel_cheat_bw.pdf src/parallel_options_map.pdf src/parallel.rst src/env_parallel.rst src/parallel_tutorial.rst src/parallel_design.rst src/parallel_alternatives.rst src/parallel_book.rst src/niceload.rst src/sem.rst src/sql.rst src/parcat.rst src/parset.rst src/parsort.rst
|
%doc README NEWS src/parallel.html src/env_parallel.html src/parallel_tutorial.html src/parallel_design.html src/parallel_alternatives.html src/parallel_book.html src/sem.html src/sql.html src/parcat.html src/parset.html src/parsort.html src/niceload.html src/parallel.texi src/env_parallel.texi src/parallel_tutorial.texi src/parallel_design.texi src/parallel_alternatives.texi src/parallel_book.texi src/niceload.texi src/sem.texi src/sql.texi src/parcat.texi src/parset.texi src/parsort.texi src/parallel.pdf src/env_parallel.pdf src/parallel_tutorial.pdf src/parallel_design.pdf src/parallel_alternatives.pdf src/parallel_book.pdf src/niceload.pdf src/sem.pdf src/sql.pdf src/parcat.pdf src/parset.pdf src/parsort.pdf src/parallel_cheat_bw.pdf src/parallel_options_map.pdf src/parallel.rst src/env_parallel.rst src/parallel_tutorial.rst src/parallel_design.rst src/parallel_alternatives.rst src/parallel_book.rst src/niceload.rst src/sem.rst src/sql.rst src/parcat.rst src/parset.rst src/parsort.rst
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 25 2022 Ole Tange
|
||||||
|
- added completion paths
|
||||||
* Sat Jan 22 2011 Ole Tange
|
* Sat Jan 22 2011 Ole Tange
|
||||||
- Upgrade to 20110122
|
- Upgrade to 20110122
|
||||||
* Wed Dec 22 2010 Ole Tange
|
* Wed Dec 22 2010 Ole Tange
|
||||||
|
|
|
@ -5654,7 +5654,10 @@ the currently running jobs are finished before exiting.
|
||||||
=item $PARALLEL_HOME
|
=item $PARALLEL_HOME
|
||||||
|
|
||||||
Dir where GNU B<parallel> stores config files, semaphores, and caches
|
Dir where GNU B<parallel> stores config files, semaphores, and caches
|
||||||
information between invocations. Default: $HOME/.parallel.
|
information between invocations. If set to a non-existent dir, the dir
|
||||||
|
will be created.
|
||||||
|
|
||||||
|
Default: $HOME/.parallel.
|
||||||
|
|
||||||
|
|
||||||
=item $PARALLEL_ARGHOSTGROUPS
|
=item $PARALLEL_ARGHOSTGROUPS
|
||||||
|
|
|
@ -16,6 +16,14 @@ export -f stdsort
|
||||||
# Test amount of parallelization
|
# Test amount of parallelization
|
||||||
# parallel --shuf --jl /tmp/myjl -j1 'export JOBS={1};'bash tests-to-run/parallel-local-0.3s.sh ::: {1..16} ::: {1..5}
|
# parallel --shuf --jl /tmp/myjl -j1 'export JOBS={1};'bash tests-to-run/parallel-local-0.3s.sh ::: {1..16} ::: {1..5}
|
||||||
|
|
||||||
|
par_pipepart_triple_colon() {
|
||||||
|
echo '### bug #62311: --pipepart + ::: fail'
|
||||||
|
tmp1=$(mktemp)
|
||||||
|
seq 3 >$tmp1
|
||||||
|
parallel --pipepart -a $tmp1 wc ::: a
|
||||||
|
rm $tmp1
|
||||||
|
}
|
||||||
|
|
||||||
par_open-tty() {
|
par_open-tty() {
|
||||||
echo '### bug #62310: xargs compatibility: --open-tty'
|
echo '### bug #62310: xargs compatibility: --open-tty'
|
||||||
parallel --open-tty ::: tty
|
parallel --open-tty ::: tty
|
||||||
|
|
|
@ -723,6 +723,10 @@ par_pipepart_recend_recstart 9
|
||||||
par_pipepart_recend_recstart 10
|
par_pipepart_recend_recstart 10
|
||||||
par_pipepart_roundrobin ### bug #45769: --round-robin --pipepart gives wrong results
|
par_pipepart_roundrobin ### bug #45769: --round-robin --pipepart gives wrong results
|
||||||
par_pipepart_roundrobin 2
|
par_pipepart_roundrobin 2
|
||||||
|
par_pipepart_triple_colon ### bug #62311: --pipepart + ::: fail
|
||||||
|
par_pipepart_triple_colon 1 1 2
|
||||||
|
par_pipepart_triple_colon 1 1 2
|
||||||
|
par_pipepart_triple_colon 1 1 2
|
||||||
par_plus ### --plus
|
par_plus ### --plus
|
||||||
par_plus (It is OK to start with extra / or end with extra .)
|
par_plus (It is OK to start with extra / or end with extra .)
|
||||||
par_plus a = /a = a. = /a. = a. = /a. = a. = /a.
|
par_plus a = /a = a. = /a. = a. = /a. = a. = /a.
|
||||||
|
|
Loading…
Reference in a new issue