mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-30 01:47:56 +00:00
22 lines
512 B
Bash
Executable file
22 lines
512 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
version=$1
|
|
if [ -z "${version}" ]; then
|
|
echo "usage: update <version>"
|
|
exit 1
|
|
fi
|
|
set -ex
|
|
url="http://ftp.gnu.org/gnu/parallel/parallel-${version}.tar.bz2"
|
|
file="/tmp/parallel-${version}.tgz"
|
|
wget "$url" -O "${file}"
|
|
( cd "$(dirname "$0")" && \
|
|
0publish \
|
|
--add-version ${version} \
|
|
--archive-url="${url}" \
|
|
--archive-file="${file}" \
|
|
--archive-extract="parallel-${version}" \
|
|
--set-released=today \
|
|
--xmlsign parallel.xml ) && \
|
|
git commit -am "0install: added version $version" -e
|