源码地带 > 电路图 > 电子资料下载 > 其他 >putty > 查看压缩包源码

putty

源代码在线查看: sign.sh

软件大小: 1281 K
上传用户: wuseyue
关键词: putty
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh 
				
				# Generate GPG signatures on a PuTTY release/snapshot directory as
				# delivered by Buildscr.
				
				# Usage: sign.sh  
				# e.g. sign.sh build.out Snapshots
				#   or sign.sh 0.60 Releases
				
				set -e
				
				sign() {
				  # Check for the prior existence of the signature, so we can
				  # re-run this script if it encounters an error part way
				  # through.
				  echo "----- Signing $2 with '$keyname'"
				  test -f "$3" || \
				    gpg --load-extension=idea "$1" -u "$keyname" -o "$3" "$2"
				}
				
				cd "$1"
				for t in DSA RSA; do
				  keyname="$2 ($t)"
				  echo "===== Signing with '$keyname'"
				  for i in putty*src.zip putty*.tar.gz x86/*.exe x86/*.zip; do
				    sign --detach-sign "$i" "$i.$t"
				  done
				  sign --clearsign md5sums md5sums.$t
				done
							

相关资源