1 # SPDX-FileCopyrightText: 2002-2022 Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc.
3 # SPDX-License-Identifier: GPL-3.0-or-later
14 eval `gpg-agent --daemon`
15 # make sure $YYYYMMDD is set
16 echo $(YYYYMMDD) | grep 20
17 cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
18 cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
19 perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
20 gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
22 cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
23 perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
24 gpg --clearsign --yes parallel-latest.tar.bz2.directive
26 (echo '#!/bin/bash'; \
28 echo "# To check the signature run:"; \
29 echo "# echo | gpg"; \
30 echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
32 echo "echo | gpg 2>/dev/null"; \
33 echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
36 gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
37 ) > parallel-$(YYYYMMDD).tar.bz2.sig
39 (echo '#!/bin/bash'; \
41 echo "# To check the signature run:"; \
42 echo "# echo | gpg"; \
43 echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
45 echo "echo | gpg 2>/dev/null"; \
46 echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
49 gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
50 ) > parallel-latest.tar.bz2.sig
52 gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
53 gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
55 ../ftpsync/src/ftpsync parallel-$(YYYYMMDD).tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/ftp/
56 ../ftpsync/src/ftpsync parallel-latest.tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/ftp/
58 # This can take 7 minutes
60 rm -rf /tmp/parallel-$(YYYYMMDD)*; \
61 while ! wget https://ftp.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 2; done; \
62 tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
63 cd parallel-$(YYYYMMDD); \
65 make -j && sudo make -j install; \
67 sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
71 eval `gpg-agent --daemon`
72 # make sure $YYYYMMDD is set
73 echo $(YYYYMMDD) | grep 20
74 cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
75 cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
76 perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
77 gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
79 cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
80 perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
81 gpg --clearsign --yes parallel-latest.tar.bz2.directive
83 (echo '#!/bin/bash'; \
85 echo "# To check the signature run:"; \
86 echo "# echo | gpg"; \
87 echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
89 echo "echo | gpg 2>/dev/null"; \
90 echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
93 gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
94 ) > parallel-$(YYYYMMDD).tar.bz2.sig
96 (echo '#!/bin/bash'; \
98 echo "# To check the signature run:"; \
99 echo "# echo | gpg"; \
100 echo "# gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
102 echo "echo | gpg 2>/dev/null"; \
103 echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
106 gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
107 ) > parallel-latest.tar.bz2.sig
109 gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
110 gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
112 ../ftpsync/src/ftpsync parallel-$(YYYYMMDD).tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/alpha/
114 # This can take 7 minutes
116 rm -rf /tmp/parallel-$(YYYYMMDD)*; \
117 while ! wget http://alpha.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 2; done; \
118 tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
119 cd parallel-$(YYYYMMDD); \
121 make -j && sudo make -j install; \
123 sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
126 # If man page changed: open new pdfman
127 inotifywait -qmre MOVED_TO -e CLOSE_WRITE --format %w%f . | parallel -uj1 'echo {=/\.pod$$/ or skip()=};make -j && sudo make install; pdfman {/.} &'
132 git commit -a -m dummy
139 echo ' reuse addheader --copyright="Ole Tange, http://ole.tange.dk and Free Software and Foundation, Inc." --license="GPL-3.0-or-later" source-files'; \
141 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' \
143 git reset HEAD~ >/dev/null
144 git commit -c ORIG_HEAD >/dev/null
148 cd urls && grep -v '(dead)' ../src/* | grep -h -Po 'https?://[^ $$<>")}]+' | perl -pe 's/(>|\{).*//;s/\\-/-/g;s/\\n//g;s/&/&/g;s/&#.*//;'"s/'.*//" | grep -Ev 'parallel-(20)?$$|coolwebsite.biz' | sort -u | egrep -v 'example.com|##|\*\(' | parallel -j0 --timeout 33 --bar --tag --joblog joblog --retries 3 neno wget -m -l1 -Q1 '{=$$_=Q($$_)=}'
151 rm -fr autom4te.cache aclocal.m4 config.h config.h.in config.log Makefile.in missing install-sh
152 rm -rf src/Makefile.in
153 autoreconf --install -W gnu
158 pack_unpack_and_test_build:
159 echo '### Building tar.bz2'
163 echo "### Unpack parallel-$(YYYYMMDD).tar.bz2"
164 cp parallel-$(YYYYMMDD).tar.bz2 /tmp
166 tar xjf parallel-$(YYYYMMDD).tar.bz2 && \
167 cd parallel-$(YYYYMMDD) && \
168 ./configure && make -j && sudo make -j install
170 # This ought to be correct, but fails on Centos
171 # bashcompletiondir=$(DESTDIR)${datarootdir}/bash-completion/completions
172 # zshcompletiondir=$(DESTDIR)${datarootdir}/zsh/site-functions
173 bashcompletiondir=$(DESTDIR)${prefix}/share/bash-completion/completions
174 zshcompletiondir=$(DESTDIR)${prefix}/share/zsh/site-functions
175 bashcompletion=${bashcompletiondir}/parallel
176 zshcompletion=${zshcompletiondir}/_parallel
178 mkdir -p ${zshcompletiondir} ${bashcompletiondir}
179 src/parallel --shell-completion bash > ${bashcompletion}
180 # Make zsh eval the --shell-completion code dynamically so if
181 # a newer version of GNU Parallel is installed by a normal
182 # user, this newer version will generate the
183 # --shell-completion code.
184 echo '#compdef parallel' > ${zshcompletion}
185 echo '(( $$+functions[_comp_parallel] )) ||' >> ${zshcompletion}
186 echo ' eval "$$(parallel --shell-completion auto)" &&' >> ${zshcompletion}
187 echo ' _comp_parallel' >> ${zshcompletion}
189 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