]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
patch_cmds: diffstat without autotools
authorCameron Katri <me@cameronkatri.com>
Mon, 10 May 2021 13:37:27 +0000 (09:37 -0400)
committerCameron Katri <me@cameronkatri.com>
Mon, 10 May 2021 13:37:27 +0000 (09:37 -0400)
patch_cmds/Makefile [new file with mode: 0644]
patch_cmds/diffstat/Makefile [new file with mode: 0644]
patch_cmds/diffstat/diffstat.c
patch_cmds/patch/Makefile

diff --git a/patch_cmds/Makefile b/patch_cmds/Makefile
new file mode 100644 (file)
index 0000000..db429c5
--- /dev/null
@@ -0,0 +1,4 @@
+SUBDIR=        patch \
+       diffstat
+
+.include <bsd.subdir.mk>
diff --git a/patch_cmds/diffstat/Makefile b/patch_cmds/diffstat/Makefile
new file mode 100644 (file)
index 0000000..ae9c6ca
--- /dev/null
@@ -0,0 +1,5 @@
+PROG=  diffstat
+
+CFLAGS+=-DHAVE_CONFIG_H
+
+.include <bsd.prog.mk>
index 7027ba3818e65513e765ac58ac7fd51ab9144f7f..c09f585d4695e1202bccd9e7d74861305f3bb500 100644 (file)
@@ -171,7 +171,7 @@ static const char *Id = "$Id: diffstat.c,v 1.55 2012/01/03 09:44:24 tom Exp $";
  */
 
 #if defined(HAVE_CONFIG_H)
-#include <config.h>
+#include "config.h"
 #endif
 
 #if defined(WIN32) && !defined(HAVE_CONFIG_H)
index d7071a4a0688314a880f22a7a44f38ce984a7771..ec33186e73cbf733c8e2f3b43cdc67e6de639479 100644 (file)
@@ -1,6 +1,4 @@
-#      $OpenBSD: Makefile,v 1.4 2005/05/16 15:22:46 espie Exp $
-
 PROG=  patch
-SRCS=  patch.c pch.c inp.c util.c backupfile.c mkpath.c
+SRCS=  backupfile.c inp.c mkpath.c patch.c pch.c util.c
 
 .include <bsd.prog.mk>