parallel: Prototypes on most functions added.
[parallel.git] / Makefile.am
blob075e14f857aaae39098e56056cd5b585a2321bf8
1 SUBDIRS = src
3 test:
4         cd testsuite; make 1
6 upload:
7         eval `gpg-agent --daemon`
8 # make sure $YYYYMMDD is set
9         echo $(YYYYMMDD) | grep 20
10         cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
11         cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
12         perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
13         gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
15         cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
16         perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
17         gpg --clearsign --yes parallel-latest.tar.bz2.directive
19         (echo '#!/bin/bash'; \
20          echo; \
21          echo "# To check the signature run:"; \
22          echo "#  echo | gpg"; \
23          echo "#  gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
24          echo; \
25          echo "echo | gpg 2>/dev/null"; \
26          echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
27          echo 'exit $$?' ; \
28          echo; \
29          gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
30         ) > parallel-$(YYYYMMDD).tar.bz2.sig
32         (echo '#!/bin/bash'; \
33          echo; \
34          echo "# To check the signature run:"; \
35          echo "#  echo | gpg"; \
36          echo "#  gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
37          echo; \
38          echo "echo | gpg 2>/dev/null"; \
39          echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
40          echo 'exit $$?' ; \
41          echo; \
42          gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
43         ) > parallel-latest.tar.bz2.sig
45         gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
46         gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
48         ../ftpsync/src/ftpsync parallel-$(YYYYMMDD).tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/ftp/
49         ../ftpsync/src/ftpsync parallel-latest.tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/ftp/
51 # This can take 7 minutes
52         pushd /tmp; \
53         rm -rf /tmp/parallel-$(YYYYMMDD)*; \
54         while ! wget https://ftp.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 2; done; \
55         tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
56         cd parallel-$(YYYYMMDD); \
57         ./configure; \
58         make -j && sudo make -j install; \
59         pushd; \
60         sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
62 alphaupload:
63 # Copy of upload
64         eval `gpg-agent --daemon`
65 # make sure $YYYYMMDD is set
66         echo $(YYYYMMDD) | grep 20
67         cp parallel-$(YYYYMMDD).tar.bz2 parallel-latest.tar.bz2
68         cp doc/parallel.directive parallel-$(YYYYMMDD).tar.bz2.directive
69         perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-*.tar.*directive
70         gpg --clearsign --yes parallel-$(YYYYMMDD).tar.bz2.directive
72         cp doc/parallel.latest.directive parallel-latest.tar.bz2.directive
73         perl -i -pe "s/20\d\d\d\d\d\d/$(YYYYMMDD)/" parallel-latest.tar.*directive
74         gpg --clearsign --yes parallel-latest.tar.bz2.directive
76         (echo '#!/bin/bash'; \
77          echo; \
78          echo "# To check the signature run:"; \
79          echo "#  echo | gpg"; \
80          echo "#  gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig"; \
81          echo; \
82          echo "echo | gpg 2>/dev/null"; \
83          echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
84          echo 'exit $$?' ; \
85          echo; \
86          gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
87         ) > parallel-$(YYYYMMDD).tar.bz2.sig
89         (echo '#!/bin/bash'; \
90          echo; \
91          echo "# To check the signature run:"; \
92          echo "#  echo | gpg"; \
93          echo "#  gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig"; \
94          echo; \
95          echo "echo | gpg 2>/dev/null"; \
96          echo 'gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve $$0'; \
97          echo 'exit $$?' ; \
98          echo; \
99          gpg -ab -o - parallel-$(YYYYMMDD).tar.bz2; \
100         ) > parallel-latest.tar.bz2.sig
102         gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-latest.tar.bz2.sig
103         gpg --auto-key-locate keyserver --keyserver-options auto-key-retrieve parallel-$(YYYYMMDD).tar.bz2.sig
105         ../ftpsync/src/ftpsync parallel-$(YYYYMMDD).tar.bz2{,.sig,*asc} ftp://ftp-upload.gnu.org/incoming/alpha/
107 # This can take 7 minutes
108         pushd /tmp; \
109         rm -rf /tmp/parallel-$(YYYYMMDD)*; \
110         while ! wget http://alpha.gnu.org/gnu/parallel/parallel-$(YYYYMMDD).tar.bz2 ; do sleep 2; done; \
111         tar xjvf parallel-$(YYYYMMDD).tar.bz2; \
112         cd parallel-$(YYYYMMDD); \
113         ./configure; \
114         make -j && sudo make -j install; \
115         pushd; \
116         sudo cp /usr/local/bin/parallel /usr/local/bin/parallel-$(YYYYMMDD)
118 monitorman:
119 # If man page changed: open new pdfman
120         inotifywait -qmre MOVED_TO -e CLOSE_WRITE --format %w%f . | parallel -uj1 'echo {=/\.pod$$/ or skip()=};make -j && sudo make install; pdfman {/.} &'
122 testurls:
123         mkdir -p urls
124         cd urls && grep -v '(dead)' ../src/* | grep -h -Po 'https?://[^ $$<>")}]+' | perl -pe 's/(&gt|\{).*//;s/\\-/-/g;s/\\n//g;s/&amp;/&/g;s/&#.*//;'"s/'.*//" | sort -u | egrep -v 'example.com|##|\*\(' | parallel -j0 --timeout 33 --bar --tag --retries 3 neno wget -m -l1 -Q1 '{=$$_=Q($$_)=}'
126 EXTRA_DIST = CITATION CREDITS cc-by-sa.txt fdl.txt