#!/bin/sh # Script to generate teh checksums for a release. version="$1" if [ -z "$version" ]; then echo "usage: mk-chksums VERSION" >&2 exit 1 fi for i in gpg4win-$version.tar.bz2 gpg4win-$version.exe \ gpg4win-light-$version.exe gpg4win-src-$version.exe ; do if [ ! -f "$i" ]; then echo "mk-chksums: file $i is missing in current directory" >&2 exit 1 fi done sha1_src="`sha1sum gpg4win-$version.tar.bz2 | awk '{print $1}'`" sha1_exe="`sha1sum gpg4win-$version.exe | awk '{print $1}'`" sha1_exl="`sha1sum gpg4win-light-$version.exe | awk '{print $1}'`" sha1_exs="`sha1sum gpg4win-src-$version.exe | awk '{print $1}'`" md5_src="`md5sum gpg4win-$version.tar.bz2 | awk '{print $1}'`" md5_exe="`md5sum gpg4win-$version.exe | awk '{print $1}'`" md5_exl="`md5sum gpg4win-light-$version.exe | awk '{print $1}'`" md5_exs="`md5sum gpg4win-src-$version.exe | awk '{print $1}'`" cat <