Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src On second thoughts, don't make mktemp a host tool. It's onl...



details:   https://anonhg.NetBSD.org/src/rev/a5796338297b
branches:  trunk
changeset: 524876:a5796338297b
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Mon Apr 01 13:54:00 2002 +0000

description:
On second thoughts, don't make mktemp a host tool.  It's only used once, for
creating a temporary directory for maketars, and mkdir can do that safely
enough.

diffstat:

 tools/Makefile          |   4 ++--
 tools/mktemp/Makefile   |   6 ------
 usr.bin/mktemp/Makefile |   4 +---
 usr.bin/mktemp/mktemp.c |  10 +++-------
 4 files changed, 6 insertions(+), 18 deletions(-)

diffs (69 lines):

diff -r b697e293e6c5 -r a5796338297b tools/Makefile
--- a/tools/Makefile    Mon Apr 01 13:42:36 2002 +0000
+++ b/tools/Makefile    Mon Apr 01 13:54:00 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.43 2002/03/31 18:11:50 bjh21 Exp $
+#      $NetBSD: Makefile,v 1.44 2002/04/01 13:54:00 bjh21 Exp $
 
 # XXX Note: NO_DBSYM is a stopgap temporary variable for use
 # with the development of non-NetBSD hosting support.  This will go away.
@@ -21,7 +21,7 @@
        lex .WAIT \
        ${TOOLCHAIN_BITS} \
                asn1_compile cksum compile_et config lint1 \
-               makefs menuc mklocale mktemp msgc pax pwd_mkdb zic
+               makefs menuc mklocale msgc pax pwd_mkdb zic
 
 .if ${MKMAN} != "no"
 SUBDIR+=       groff
diff -r b697e293e6c5 -r a5796338297b tools/mktemp/Makefile
--- a/tools/mktemp/Makefile     Mon Apr 01 13:42:36 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2002/03/31 18:11:51 bjh21 Exp $
-
-HOSTPROGNAME=  nbmktemp
-HOST_SRCDIR=   usr.bin/mktemp
-
-.include "${.CURDIR}/../Makefile.host"
diff -r b697e293e6c5 -r a5796338297b usr.bin/mktemp/Makefile
--- a/usr.bin/mktemp/Makefile   Mon Apr 01 13:42:36 2002 +0000
+++ b/usr.bin/mktemp/Makefile   Mon Apr 01 13:54:00 2002 +0000
@@ -1,8 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2002/03/31 18:11:51 bjh21 Exp $
+# $NetBSD: Makefile,v 1.4 2002/04/01 13:54:01 bjh21 Exp $
 # From: $FreeBSD: src/usr.bin/mktemp/Makefile,v 1.1 1998/04/14 07:39:56 peter Exp $
 
 PROG=  mktemp
 
-.ifndef HOSTPROG
 .include <bsd.prog.mk>
-.endif
diff -r b697e293e6c5 -r a5796338297b usr.bin/mktemp/mktemp.c
--- a/usr.bin/mktemp/mktemp.c   Mon Apr 01 13:42:36 2002 +0000
+++ b/usr.bin/mktemp/mktemp.c   Mon Apr 01 13:54:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mktemp.c,v 1.3 2002/03/31 18:11:51 bjh21 Exp $ */
+/* $NetBSD: mktemp.c,v 1.4 2002/04/01 13:54:01 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1994, 1995, 1996, 1998 Peter Wemm <peter%netplex.com.au@localhost>
@@ -44,16 +44,12 @@
 #include <string.h>
 #include <unistd.h>
 
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#if defined(__RCSID) && !defined(lint)
+#ifndef lint
 #if 0
 static const char rcsid[] =
        "$FreeBSD: src/usr.bin/mktemp/mktemp.c,v 1.2 1998/05/05 06:13:47 charnier Exp $";
 #else
-__RCSID("$NetBSD: mktemp.c,v 1.3 2002/03/31 18:11:51 bjh21 Exp $");
+__RCSID("$NetBSD: mktemp.c,v 1.4 2002/04/01 13:54:01 bjh21 Exp $");
 #endif
 #endif /* not lint */
 



Home | Main Index | Thread Index | Old Index