[Midnightbsd-cvs] src: usr.bin/objformat: this has been depricated
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Dec 9 12:10:26 EST 2008
Log Message:
-----------
this has been depricated
Modified Files:
--------------
src/usr.bin/objformat:
Makefile (r1.1.1.1 -> r1.2)
Added Files:
-----------
src/usr.bin/objformat:
objformat.sh (r1.1)
Removed Files:
-------------
src/usr.bin/objformat:
objformat.1
objformat.c
-------------- next part --------------
--- usr.bin/objformat/objformat.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*-
- * Copyright (c) 1998, Peter Wemm <peter at netplex.com.au>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD: src/usr.bin/objformat/objformat.c,v 1.9 2002/09/17 01:49:00 peter Exp $
- */
-
-#include <unistd.h>
-#include <stdlib.h>
-
-int
-main(int argc, char **argv)
-{
-
- write(1, "elf\n", 4);
- return (0);
-}
--- usr.bin/objformat/objformat.1
+++ /dev/null
@@ -1,63 +0,0 @@
-.\"
-.\" Copyright (c) 1998 David E. O'Brien
-.\"
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
-.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
-.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.\" $FreeBSD: src/usr.bin/objformat/objformat.1,v 1.10 2002/11/26 17:34:25 ru Exp $
-.\"
-.Dd September 17, 2002
-.Os
-.Dt OBJFORMAT 1
-.Sh NAME
-.Nm objformat
-.Nd reports default binary format
-.Sh SYNOPSIS
-.Nm
-.Sh DESCRIPTION
-.Bf -symbolic
-This program is obsolete and is now just a compatibility stub.
-.Ef
-.Pp
-It reports the object file format as
-.Dq Li elf .
-.Sh HISTORY
-The
-.Nm
-command appeared in
-.Fx 3.0 .
-.Pp
-The
-.Nm
-program was deprecated in
-.Fx 4.0
-and reduced to a compatibility stub in
-.Fx 5.0 .
-It will be completely removed before the next release.
-.Sh AUTHORS
-.An -nosplit
-The
-.Nm
-utility was written by
-.An Peter Wemm Aq peter at netplex.com.au .
-This manual page was written by
-.An David O'Brien Aq obrien at NUXI.com .
Index: Makefile
===================================================================
RCS file: /home/cvs/src/usr.bin/objformat/Makefile,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -L usr.bin/objformat/Makefile -L usr.bin/objformat/Makefile -u -r1.1.1.1 -r1.2
--- usr.bin/objformat/Makefile
+++ usr.bin/objformat/Makefile
@@ -1,5 +1,7 @@
-# $FreeBSD: src/usr.bin/objformat/Makefile,v 1.18 2002/09/17 01:49:00 peter Exp $
+# $FreeBSD: src/usr.bin/objformat/Makefile,v 1.20 2007/01/25 23:12:19 peter Exp $
-PROG= objformat
+SCRIPTS=objformat.sh
+NO_MAN=
.include <bsd.prog.mk>
+
--- /dev/null
+++ usr.bin/objformat/objformat.sh
@@ -0,0 +1,26 @@
+#! /bin/sh
+# $FreeBSD: src/usr.bin/objformat/objformat.sh,v 1.1 2007/01/25 23:12:19 peter Exp $
+# /usr/bin/objformat has been obsolete and deprecated for years.
+# Please remove any build/configure script references. New software
+# should only have to only support elf on FreeBSD.
+#
+# FreeBSD-2.0, 2.1.x and 2.2.x will use a.out
+# FreeBSD-3.x will have a real /usr/bin/objformat and are more likely
+# to be elf than a.out.
+# Assume that FreeBSD-4.x will be using elf even though it is
+# **theoretically** possible to build an a.out world.
+# FreeBSD-5.x and higher only support elf.
+#
+
+echo '========================================================' 1>&2
+echo '== PLEASE REMOVE ALL REFERENCES TO /usr/bin/objformat ==' 1>&2
+echo '=========== IT HAS BEEN OBSOLETE FOR YEARS! ====-=======' 1>&2
+echo '========================================================' 1>&2
+(echo '========================================================' >/dev/tty) 2>/dev/null
+(echo '== PLEASE REMOVE ALL REFERENCES TO /usr/bin/objformat ==' >/dev/tty) 2>/dev/null
+(echo '=========== IT HAS BEEN OBSOLETE FOR YEARS! ====-=======' >/dev/tty) 2>/dev/null
+(echo '========================================================' >/dev/tty) 2>/dev/null
+# highlight the nag or it will never be fixed!
+sleep 10
+echo elf
+exit 0
More information about the Midnightbsd-cvs
mailing list