Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
11
.bin/port-diff
Executable file
11
.bin/port-diff
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
pwd | fgrep -q '/usr/ports/' || return 1
|
||||
set -A N $(make show="PKGNAME EPOCH REVISION")
|
||||
PN="${N[0]}${N[1]:+v${N[1]}}${N[2]:+p${N[2]}}"
|
||||
PD=$(pwd | cut -d"/" -f4,5)
|
||||
|
||||
cd /usr/ports
|
||||
cvs -d $CVSROOT diff -uNp "${PD}" > ~sdk/diffs/${PN}.diff
|
||||
echo ~/diffs/${PN}.diff
|
||||
|
||||
Reference in New Issue
Block a user