shithub: snippets

Download patch

ref: b5485070f68da54643f4a69f156390409947a054
parent: 3160d64112b0f517da51ad82ec4f00f0a5ebe6e3
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Mar 8 05:05:24 EST 2021

helpmeport: reduce header clutter

--- a/helpmeport
+++ b/helpmeport
@@ -12,8 +12,8 @@
 
 echo '# HEADERS'
 echo mkdir -p $dir/plan9
-g -h '#[ 	]*include[ 	]*<[^>/]+/' | sed 's☭.*<(.*)/[^/]*>.*☭mkdir -p '$dir'/plan9/\1☭g' | sort -u
-g -h '#[ 	]*include[ 	]*<[^>/]+' | sed 's☭.*<(.*)>.*☭echo ''#include "plan9.h"'' > '$dir'/plan9/\1☭g' | sort -u
+g -h '#[ 	]*include[ 	]*<[^>/]+/' | sed 's☭.*<(.*)/[^/]*>.*☭mkdir -p '$dir'/plan9/\1☭g' $* | sort -u
+g -h '#[ 	]*include[ 	]*<[^>/]+' | sed 's☭.*<(.*)>.*☭echo ''#include "plan9.h"'' > '$dir'/plan9/\1☭g' $* | sort -u
 echo 'cat >'$dir'/plan9/plan9.h <<EOF
 #ifndef __plan9_h__
 #define __plan9_h__