aboutsummaryrefslogtreecommitdiff
path: root/sum
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-18 18:49:13 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-18 18:49:37 +0200
commit123687a5aa3482b5ba9ca86179526c94422b409d (patch)
tree83fa480a7727cd67eb5840e7555d984478c53afd /sum
parent830afa08f95e2026f97b62d22484c27d42c104b1 (diff)
downloadpatches-123687a5aa3482b5ba9ca86179526c94422b409d.tar.gz
Add savepatch, xpkg scripts
Diffstat (limited to 'sum')
-rwxr-xr-xsum18
1 files changed, 0 insertions, 18 deletions
diff --git a/sum b/sum
deleted file mode 100755
index 9469302..0000000
--- a/sum
+++ /dev/null
@@ -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"