shithub: snippets

Download patch

ref: d44e426a561d752cdcb5d9484e20e66b25676c77
parent: 6669b2c0a19c010493f5343ec136987081672efd
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 3 05:50:28 EST 2021

helpmeport: fix some shit

--- a/helpmeport
+++ b/helpmeport
@@ -57,6 +57,8 @@
 #define exit(x) exits(x == 0 ? nil : "error")
 #define setenv(k,v,x) putenv(k,v)
 #define unsetenv(k) putenv(k,"")
+#define strcasecmp cistrcmp
+#define strncasecmp cistrncmp
 
 #endif
 EOF'
@@ -89,4 +91,7 @@
 echo '#FIXME'
 echo '#</sys/src/cmd/mklib'
 echo '#</sys/src/cmd/mkone'
+echo
+echo '%.$O: %.c'
+echo '	$CC $CFLAGS -o $target $stem.c'
 echo EOF