blob: d6749a1eeeab2c139204c373f5ac5cf1048b61e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# checksum -- create checksum for local patch
[ -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"
|