diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-18 18:49:13 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-18 18:49:37 +0200 |
commit | 123687a5aa3482b5ba9ca86179526c94422b409d (patch) | |
tree | 83fa480a7727cd67eb5840e7555d984478c53afd /sum | |
parent | 830afa08f95e2026f97b62d22484c27d42c104b1 (diff) | |
download | patches-123687a5aa3482b5ba9ca86179526c94422b409d.tar.gz |
Add savepatch, xpkg scripts
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" |