shithub: rc

Download patch

ref: 9de2b8928e40459a0779d71a7d8eb1e182098d05
parent: dfc22419eac1741b5655126826799f06346a37d5
author: qwx <qwx@sciops.net>
date: Fri Jul 30 06:04:51 EDT 2021

add pa4: fuck you ape/patch

--- /dev/null
+++ b/bin/pa4
@@ -1,0 +1,12 @@
+#!/bin/rc -e
+for(i in $*){
+	if(! test -f $i){
+		echo usage: $0 patch..
+		exit usage
+	}
+	h=`{sed 's,--- //.git/fs/.*,git,;q' $i}
+	p=1
+	if(~ git $h)
+		p=0
+	ape/patch --no-backup-if-mismatch -p$p <$i
+}