diff options
Diffstat (limited to 'sum')
-rwxr-xr-x | sum | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -1,18 +0,0 @@ -#!/bin/sh - -# checksum -- create checksum for local patch - -# -# Note that checksums are optional for local patches. -# - -[ -z "$1" ] && { echo usage: $0 patch 1>&2; exit 1; } - -localpath=`readlink -f "$1"` -globalpath=/usr/pkgsrc/${localpath#/home/john/patches/} - -[ -e "$globalpath" ] && { echo error: "$globalpath" exists 1>&2; exit 1; } -doas cp "$localpath" "$globalpath" -cd "$(dirname "$globalpath")" -doas make makepatchsum -doas rm "$globalpath" |