mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-24 23:17:55 +00:00
10seconds_install: Update copyright year.
This commit is contained in:
parent
9fd39b122d
commit
32318fca9c
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (C) 2013-2018 Ole Tange and Free Software Foundation, Inc.
|
# Copyright (C) 2013-2019 Ole Tange and Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -15,7 +15,12 @@
|
||||||
# If that fails, it copies to $HOME/bin
|
# If that fails, it copies to $HOME/bin
|
||||||
#
|
#
|
||||||
# You can download and run the script directly by:
|
# You can download and run the script directly by:
|
||||||
# (lynx -source pi.dk/3 || wget -O - pi.dk/3 || curl pi.dk/3/ || fetch -o - http://pi.dk/3) | bash
|
# $ (wget -O - pi.dk/3 || lynx -source pi.dk/3 || curl pi.dk/3/ || \
|
||||||
|
# fetch -o - http://pi.dk/3) > install.sh
|
||||||
|
# $ sha1sum install.sh
|
||||||
|
# $ md5sum install.sh
|
||||||
|
# $ sha512sum install.sh
|
||||||
|
# $ bash install.sh
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
# tail on openindiana must be /usr/xpg4/bin/tail
|
# tail on openindiana must be /usr/xpg4/bin/tail
|
||||||
|
@ -56,11 +61,11 @@ run() {
|
||||||
if gpg -h 2>/dev/null >/dev/null ; then
|
if gpg -h 2>/dev/null >/dev/null ; then
|
||||||
# GnuPG installed
|
# GnuPG installed
|
||||||
# Setup .gnupg/gpg.conf if not already done
|
# Setup .gnupg/gpg.conf if not already done
|
||||||
echo | gpg 2>/dev/null >/dev/null
|
echo | gpg 2>/dev/null >/dev/null
|
||||||
keyserver1=keys.gnupg.net
|
keyserver1=keys.gnupg.net
|
||||||
keyserver2=pool.sks-keyservers.net
|
keyserver2=pool.sks-keyservers.net
|
||||||
if gpg --keyserver $keyserver1 --recv-key 0xFFFFFFF1 ||
|
if gpg --keyserver $keyserver1 --recv-key 0xFFFFFFF1 ||
|
||||||
gpg --keyserver $keyserver2 --recv-key 0xFFFFFFF1 ; then
|
gpg --keyserver $keyserver2 --recv-key 0xFFFFFFF1 ; then
|
||||||
if gpg --keyserver $keyserver1 --recv-key 0x88888888 ||
|
if gpg --keyserver $keyserver1 --recv-key 0x88888888 ||
|
||||||
gpg --keyserver $keyserver2 --recv-key 0x88888888; then
|
gpg --keyserver $keyserver2 --recv-key 0x88888888; then
|
||||||
# OK
|
# OK
|
||||||
|
@ -70,7 +75,7 @@ run() {
|
||||||
echo "Cannot fetch keyID 0x88888888, so the signature cannot be checked."
|
echo "Cannot fetch keyID 0x88888888, so the signature cannot be checked."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "Cannot fetch keyID 0xFFFFFFF1, so the signature cannot be checked."
|
echo "Cannot fetch keyID 0xFFFFFFF1, so the signature cannot be checked."
|
||||||
return 1
|
return 1
|
||||||
|
@ -83,18 +88,17 @@ run() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Check signature - in case ftpmirror.gnu.org is compromised
|
# Check signature - in case ftpmirror.gnu.org is compromised
|
||||||
if fetch_keys; then
|
if fetch_keys; then
|
||||||
if gpg --with-fingerprint $LATEST.tar.bz2.sig 2>&1 |
|
if gpg --with-fingerprint $LATEST.tar.bz2.sig 2>&1 |
|
||||||
$GREP -E '^Primary key fingerprint: BE9C B493 81DE 3166 A3BC 66C1 2C62 29E2 FFFF FFF1|^Primary key fingerprint: CDA0 1A42 08C4 F745 0610 7E7B D1AB 4516 8888 8888' ; then
|
$GREP -E '^Primary key fingerprint: BE9C B493 81DE 3166 A3BC 66C1 2C62 29E2 FFFF FFF1|^Primary key fingerprint: CDA0 1A42 08C4 F745 0610 7E7B D1AB 4516 8888 8888' ; then
|
||||||
# Source code signed by Ole Tange <ole@tange.dk>
|
# Source code signed by Ole Tange <ole@tange.dk>
|
||||||
# KeyID FFFFFFF1/88888888
|
# KeyID FFFFFFF1/88888888
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
# GnuPG signature failed
|
# GnuPG signature failed
|
||||||
echo
|
echo
|
||||||
echo "The signature on $LATEST.tar.bz2 is wrong. This may indicate that a criminal has changed the code."
|
echo "The signature on $LATEST.tar.bz2 is wrong. This may indicate that a criminal has changed the code."
|
||||||
echo "THIS IS BAD AND THE CODE WILL NOT BE INSTALLED."
|
echo "THIS IS BAD AND THE CODE WILL NOT BE INSTALLED."
|
||||||
echo
|
echo
|
||||||
echo "See http://git.savannah.gnu.org/cgit/parallel.git/tree/README for other installation methods."
|
echo "See http://git.savannah.gnu.org/cgit/parallel.git/tree/README for other installation methods."
|
||||||
|
@ -122,21 +126,21 @@ run() {
|
||||||
echo GNU $LATEST installed globally
|
echo GNU $LATEST installed globally
|
||||||
else
|
else
|
||||||
if ./configure --prefix=$HOME && make && make install; then
|
if ./configure --prefix=$HOME && make && make install; then
|
||||||
echo
|
echo
|
||||||
echo GNU $LATEST installed in $HOME/bin
|
echo GNU $LATEST installed in $HOME/bin
|
||||||
else
|
else
|
||||||
mkdir -p $HOME/bin/;
|
mkdir -p $HOME/bin/;
|
||||||
chmod 755 src/*;
|
chmod 755 src/*;
|
||||||
cp src/parallel src/env_parallel* src/sem src/sql src/niceload src/parcat $HOME/bin;
|
cp src/parallel src/env_parallel* src/sem src/sql src/niceload src/parcat $HOME/bin;
|
||||||
echo
|
echo
|
||||||
echo GNU $LATEST copied to $HOME/bin
|
echo GNU $LATEST copied to $HOME/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Is $HOME/bin already in $PATH?
|
# Is $HOME/bin already in $PATH?
|
||||||
if echo $PATH | grep $HOME/bin >/dev/null; then
|
if echo $PATH | grep $HOME/bin >/dev/null; then
|
||||||
# $HOME/bin is already in $PATH
|
# $HOME/bin is already in $PATH
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
# Add $HOME/bin to $PATH for both bash and csh
|
# Add $HOME/bin to $PATH for both bash and csh
|
||||||
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
|
echo 'PATH=$PATH:$HOME/bin' >> $HOME/.bashrc
|
||||||
echo 'setenv PATH ${PATH}:${HOME}/bin' >> $HOME/.cshrc
|
echo 'setenv PATH ${PATH}:${HOME}/bin' >> $HOME/.cshrc
|
||||||
|
|
15
README
15
README
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
Please send problems and feedback to bug-parallel@gnu.org.
|
Please send problems and feedback to bug-parallel@gnu.org.
|
||||||
|
|
||||||
|
|
||||||
= Presentation of GNU Parallel =
|
= Presentation of GNU Parallel =
|
||||||
|
|
||||||
GNU Parallel is a shell tool for executing jobs in parallel using one
|
GNU Parallel is a shell tool for executing jobs in parallel using one
|
||||||
|
@ -34,7 +35,16 @@ The 10 seconds installation will try to do a full installation; if
|
||||||
that fails, a personal installation; if that fails, a minimal
|
that fails, a personal installation; if that fails, a minimal
|
||||||
installation.
|
installation.
|
||||||
|
|
||||||
(wget -O - pi.dk/3 || curl pi.dk/3/ || fetch -o - http://pi.dk/3) | bash
|
$ (wget -O - pi.dk/3 || lynx -source pi.dk/3 || curl pi.dk/3/ || \
|
||||||
|
fetch -o - http://pi.dk/3 ) > install.sh
|
||||||
|
$ sha1sum install.sh
|
||||||
|
12345678 3374ec53 bacb199b 245af2dd a86df6c9
|
||||||
|
$ md5sum install.sh
|
||||||
|
029a9ac0 6e8b5bc6 052eac57 b2c3c9ca
|
||||||
|
$ sha512sum install.sh
|
||||||
|
40f53af6 9e20dae5 713ba06c f517006d 9897747b ed8a4694 b1acba1b 1464beb4
|
||||||
|
60055629 3f2356f3 3e9c4e3c 76e3f3af a9db4b32 bd33322b 975696fc e6b23cfb
|
||||||
|
$ bash install.sh
|
||||||
|
|
||||||
This will literally install faster than reading the rest of this
|
This will literally install faster than reading the rest of this
|
||||||
document.
|
document.
|
||||||
|
@ -99,7 +109,8 @@ publication please cite:
|
||||||
|
|
||||||
= New versions =
|
= New versions =
|
||||||
|
|
||||||
New versions will be released at: ftp://ftp.gnu.org/gnu/parallel/
|
New versions will be released at: https://ftp.gnu.org/gnu/parallel/
|
||||||
|
|
||||||
|
|
||||||
= Dependencies =
|
= Dependencies =
|
||||||
|
|
||||||
|
|
|
@ -5293,6 +5293,7 @@ sub usleep($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub __KILLER_REAPER__() {}
|
sub __KILLER_REAPER__() {}
|
||||||
|
|
||||||
sub reap_usleep() {
|
sub reap_usleep() {
|
||||||
# Reap dead children.
|
# Reap dead children.
|
||||||
# If no dead children: Sleep specified amount with exponential backoff
|
# If no dead children: Sleep specified amount with exponential backoff
|
||||||
|
|
|
@ -44,8 +44,16 @@ To run this tutorial you must have the following:
|
||||||
Install the newest version using your package manager (recommended for
|
Install the newest version using your package manager (recommended for
|
||||||
security reasons), the way described in README, or with this command:
|
security reasons), the way described in README, or with this command:
|
||||||
|
|
||||||
(wget -O - pi.dk/3 || curl pi.dk/3/ || \
|
$ (wget -O - pi.dk/3 || lynx -source pi.dk/3 || curl pi.dk/3/ || \
|
||||||
fetch -o - http://pi.dk/3) | bash
|
fetch -o - http://pi.dk/3 ) > install.sh
|
||||||
|
$ sha1sum install.sh
|
||||||
|
12345678 3374ec53 bacb199b 245af2dd a86df6c9
|
||||||
|
$ md5sum install.sh
|
||||||
|
029a9ac0 6e8b5bc6 052eac57 b2c3c9ca
|
||||||
|
$ sha512sum install.sh
|
||||||
|
40f53af6 9e20dae5 713ba06c f517006d 9897747b ed8a4694 b1acba1b 1464beb4
|
||||||
|
60055629 3f2356f3 3e9c4e3c 76e3f3af a9db4b32 bd33322b 975696fc e6b23cfb
|
||||||
|
$ bash install.sh
|
||||||
|
|
||||||
This will also install the newest version of the tutorial which you
|
This will also install the newest version of the tutorial which you
|
||||||
can see by running this:
|
can see by running this:
|
||||||
|
|
Loading…
Reference in a new issue