2021-12-26 22:29:28 +00:00
|
|
|
# SPDX-FileCopyrightText: 2002-2022 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
|
2021-03-22 20:16:35 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2010-04-18 14:18:31 +00:00
|
|
|
SUBDIRS = src
|
2014-07-18 22:50:48 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
cd testsuite; make 1
|
2014-07-26 11:17:13 +00:00
|
|
|
|
2024-04-15 22:00:30 +00:00
|
|
|
tortest:
|
2024-05-05 17:06:38 +00:00
|
|
|
torsocks ssh -t tortest 'export SSH_AUTH_SOCK=`cat ~/.ssh/SSH_AUTH_SOCK`;\
|
|
|
|
export SSH_AGENT_PID=`cat ~/.ssh/SSH_AGENT_PID`;\
|
|
|
|
cd privat/parallel/testsuite/ &&\
|
|
|
|
make short && make long && make mem'
|
|
|
|
make torresults
|
|
|
|
|
|
|
|
torresults:
|
2024-06-09 18:54:40 +00:00
|
|
|
torsocks rsync -Hazv --progress tortest:privat/parallel/testsuite/actual-results/ testsuite/actual-results/
|
2024-05-05 17:06:38 +00:00
|
|
|
|
2024-04-15 22:00:30 +00:00
|
|
|
|
|
|
|
torsync:
|
2024-08-21 20:14:24 +00:00
|
|
|
torsocks rsync -Hazv --exclude='*.{pdf,gz,bz2,html,deb}' --exclude authorized_keys --exclude .vagrant/ --exclude actual-results --exclude '*hwdep*' --delete ./ tortest:privat/parallel/
|
2024-05-05 17:06:38 +00:00
|
|
|
make tortest
|
2024-04-15 22:00:30 +00:00
|
|
|
|
2021-08-03 20:50:03 +00:00
|
|
|
web:
|
|
|
|
cd src; make web
|
2023-09-24 22:07:47 +00:00
|
|
|
cp -r src/*.pdf src/sphinx/build/html/* ../parallel-web/parallel
|
|
|
|
cp ../parallel-web/parallel/parallel.html ../parallel-web/parallel/man.html
|
2021-08-03 20:50:03 +00:00
|
|
|
|
2024-10-20 14:47:15 +00:00
|
|
|
sig:
|
2015-01-21 21:24:23 +00:00
|
|
|
eval `gpg-agent --daemon`
|
|
|
|
# make sure $YYYYMMDD is set
|
|
|
|
echo $(YYYYMMDD) | grep 20
|
|
|
|
cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
|
|
|
|
cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
|
|
|
|
perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
|
|
|
|
gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
|
|
|
|
|
|
|
|
cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
|
|
|
|
perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
|
|
|
|
gpg --clearsign --yes parallel-latest.tar.bz2.directive
|
|
|
|
|
|
|
|
(echo '#!/bin/bash'; \
|
|
|
|
echo; \
|
|
|
|
echo "# To check the signature run:"; \
|
2019-11-23 21:14:03 +00:00
|
|
|
echo "# echo | gpg"; \
|
|
|
|
echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
|
2015-01-21 21:24:23 +00:00
|
|
|
echo; \
|
|
|
|
echo "echo | gpg 2>/dev/null"; \
|
|
|
|
echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
|
|
|
|
echo 'exit $$?' ; \
|
|
|
|
echo; \
|
|
|
|
gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
) > parallel-$(YYYYMMDD).tar.bz2.sig
|
2024-10-20 14:47:15 +00:00
|
|
|
chmod +x parallel-$(YYYYMMDD).tar.bz2.sig
|
2015-01-21 21:24:23 +00:00
|
|
|
|
|
|
|
(echo '#!/bin/bash'; \
|
|
|
|
echo; \
|
|
|
|
echo "# To check the signature run:"; \
|
2019-11-23 21:14:03 +00:00
|
|
|
echo "# echo | gpg"; \
|
|
|
|
echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
|
2015-01-21 21:24:23 +00:00
|
|
|
echo; \
|
|
|
|
echo "echo | gpg 2>/dev/null"; \
|
|
|
|
echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
|
|
|
|
echo 'exit $$?' ; \
|
|
|
|
echo; \
|
|
|
|
gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
) > parallel-latest.tar.bz2.sig
|
2024-10-20 14:47:15 +00:00
|
|
|
chmod +x parallel-latest.tar.bz2.sig
|
|
|
|
make checksig
|
2015-01-21 21:24:23 +00:00
|
|
|
|
2024-10-20 14:47:15 +00:00
|
|
|
checksig:
|
|
|
|
# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
|
|
|
|
# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
|
|
|
|
./parallel-latest.tar.bz2.sig
|
|
|
|
./parallel-$(YYYYMMDD).tar.bz2.sig
|
|
|
|
|
|
|
|
upload: sig
|
2024-06-24 18:57:21 +00:00
|
|
|
lftp --version
|
2024-04-22 21:05:14 +00:00
|
|
|
p=`echo parallel-latest.tar.bz2*{,.sig,.asc}`; lftp -e "put $$p; bye" ftp://anonymous:ole=tange.dk@ftp-upload.gnu.org/incoming/ftp/ || true
|
|
|
|
p=`echo parallel-$(YYYYMMDD).tar.bz2*{,.sig,.asc}`; lftp -e "put $$p; bye" ftp://anonymous:ole=tange.dk@ftp-upload.gnu.org/incoming/ftp/ || true
|
2015-01-21 21:24:23 +00:00
|
|
|
|
|
|
|
# This can take 7 minutes
|
|
|
|
pushd /tmp; \
|
|
|
|
rm -rf /tmp/parallel-$(YYYYMMDD)*; \
|
2024-03-09 20:10:08 +00:00
|
|
|
while ! wget https://ftp.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 10; done; \
|
2015-01-21 21:24:23 +00:00
|
|
|
tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
cd parallel-$(YYYYMMDD); \
|
|
|
|
./configure; \
|
|
|
|
make -j && sudo make -j install; \
|
|
|
|
pushd; \
|
|
|
|
sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
|
|
|
|
|
2017-02-07 23:54:45 +00:00
|
|
|
alphaupload:
|
|
|
|
# Copy of upload
|
|
|
|
eval `gpg-agent --daemon`
|
|
|
|
# make sure $YYYYMMDD is set
|
|
|
|
echo $(YYYYMMDD) | grep 20
|
|
|
|
cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
|
|
|
|
cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
|
|
|
|
perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
|
|
|
|
gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
|
|
|
|
|
|
|
|
cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
|
|
|
|
perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
|
|
|
|
gpg --clearsign --yes parallel-latest.tar.bz2.directive
|
|
|
|
|
|
|
|
(echo '#!/bin/bash'; \
|
|
|
|
echo; \
|
|
|
|
echo "# To check the signature run:"; \
|
|
|
|
echo "# echo | gpg"; \
|
|
|
|
echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
|
|
|
|
echo; \
|
|
|
|
echo "echo | gpg 2>/dev/null"; \
|
|
|
|
echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
|
|
|
|
echo 'exit $$?' ; \
|
|
|
|
echo; \
|
|
|
|
gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
) > parallel-$(YYYYMMDD).tar.bz2.sig
|
|
|
|
|
|
|
|
(echo '#!/bin/bash'; \
|
|
|
|
echo; \
|
|
|
|
echo "# To check the signature run:"; \
|
|
|
|
echo "# echo | gpg"; \
|
|
|
|
echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
|
|
|
|
echo; \
|
|
|
|
echo "echo | gpg 2>/dev/null"; \
|
|
|
|
echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
|
|
|
|
echo 'exit $$?' ; \
|
|
|
|
echo; \
|
|
|
|
gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
) > parallel-latest.tar.bz2.sig
|
|
|
|
|
|
|
|
gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
|
|
|
|
gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
|
|
|
|
|
|
|
|
../ftpsync/src/ftpsync parallel-$(YYYYMMDD).tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/alpha/
|
|
|
|
|
|
|
|
# This can take 7 minutes
|
|
|
|
pushd /tmp; \
|
|
|
|
rm -rf /tmp/parallel-$(YYYYMMDD)*; \
|
|
|
|
while ! wget http://alpha.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 2; done; \
|
|
|
|
tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
|
|
|
|
cd parallel-$(YYYYMMDD); \
|
|
|
|
./configure; \
|
|
|
|
make -j && sudo make -j install; \
|
|
|
|
pushd; \
|
|
|
|
sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
|
|
|
|
|
2017-04-04 21:17:29 +00:00
|
|
|
monitorman:
|
|
|
|
# If man page changed: open new pdfman
|
|
|
|
inotifywait -qmre MOVED_TO -e CLOSE_WRITE --format %w%f . | parallel -uj1 'echo {=/\.pod$$/ or skip()=};make -j && sudo make install; pdfman {/.} &'
|
|
|
|
|
2021-03-22 20:16:35 +00:00
|
|
|
reuse:
|
|
|
|
rm -rf /tmp/reuse
|
|
|
|
mkdir /tmp/reuse
|
|
|
|
git commit -a -m dummy
|
|
|
|
(wd=`pwd`; \
|
|
|
|
cd /tmp/reuse; \
|
|
|
|
git clone "$$wd"; \
|
2021-04-22 16:20:41 +00:00
|
|
|
cd parallel; \
|
2021-03-22 20:16:35 +00:00
|
|
|
reuse lint || \
|
|
|
|
(echo Use; \
|
|
|
|
echo ' reuse addheader --copyright="Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc." --license="GPL-3.0-or-later" source-files'; \
|
|
|
|
echo or; \
|
|
|
|
echo ' reuse addheader --copyright="Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc." --license="GPL-3.0-or-later" --explicit-license bin-files' \
|
|
|
|
) )
|
|
|
|
git reset HEAD~ >/dev/null
|
|
|
|
git commit -c ORIG_HEAD >/dev/null
|
|
|
|
|
2018-07-22 06:58:32 +00:00
|
|
|
testurls:
|
2018-10-22 22:46:38 +00:00
|
|
|
mkdir -p urls
|
2022-09-22 20:29:31 +00:00
|
|
|
cd urls && ../src/testurls
|
2018-07-22 06:58:32 +00:00
|
|
|
|
2020-05-31 14:42:04 +00:00
|
|
|
reconf:
|
|
|
|
rm -fr autom4te.cache aclocal.m4 config.h config.h.in config.log Makefile.in missing install-sh
|
|
|
|
rm -rf src/Makefile.in
|
|
|
|
autoreconf --install -W gnu
|
|
|
|
./configure
|
|
|
|
make -j
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
pack_unpack_and_test_build:
|
|
|
|
echo '### Building tar.bz2'
|
|
|
|
./configure
|
|
|
|
make dist
|
|
|
|
make dist-bzip2
|
|
|
|
echo "### Unpack parallel-$(YYYYMMDD).tar.bz2"
|
|
|
|
cp parallel-$(YYYYMMDD).tar.bz2 /tmp
|
|
|
|
cd /tmp && \
|
|
|
|
tar xjf parallel-$(YYYYMMDD).tar.bz2 && \
|
|
|
|
cd parallel-$(YYYYMMDD) && \
|
|
|
|
./configure && make -j && sudo make -j install
|
|
|
|
|
2022-07-01 17:54:21 +00:00
|
|
|
# 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
|
2022-06-22 14:32:57 +00:00
|
|
|
zshcompletion=${zshcompletiondir}/_parallel
|
2022-05-30 20:24:08 +00:00
|
|
|
install-data-hook:
|
2022-07-01 17:54:21 +00:00
|
|
|
mkdir -p ${zshcompletiondir} ${bashcompletiondir}
|
2022-12-20 22:40:23 +00:00
|
|
|
$(DESTDIR)$(bindir)/parallel --shell-completion bash > ${bashcompletion}
|
2022-07-01 17:54:21 +00:00
|
|
|
# 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.
|
2022-05-30 20:24:08 +00:00
|
|
|
echo '#compdef parallel' > ${zshcompletion}
|
|
|
|
echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
|
|
|
|
echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
|
|
|
|
echo ' _comp_parallel' >> ${zshcompletion}
|
2020-05-31 14:42:04 +00:00
|
|
|
|
2022-11-24 21:22:37 +00:00
|
|
|
uninstall-hook:
|
|
|
|
rm -rf ${zshcompletiondir} ${bashcompletiondir}
|
|
|
|
|
2022-02-17 12:19:55 +00:00
|
|
|
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
|