parallel/packager/0install/update

22 lines
512 B
Plaintext
Raw Normal View History

#!/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 \
2010-11-13 23:32:21 +00:00
--xmlsign parallel.xml ) && \
git commit -am "0install: added version $version" -e