From owner-cvs-all@FreeBSD.ORG Fri Dec 1 07:01:24 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D17C16A403; Fri, 1 Dec 2006 07:01:24 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADDD043CAC; Fri, 1 Dec 2006 07:01:07 +0000 (GMT) (envelope-from keramida@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kB171KKK003812; Fri, 1 Dec 2006 07:01:20 GMT (envelope-from keramida@repoman.freebsd.org) Received: (from keramida@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kB171J8J003803; Fri, 1 Dec 2006 07:01:19 GMT (envelope-from keramida) Message-Id: <200612010701.kB171J8J003803@repoman.freebsd.org> From: Giorgos Keramidas Date: Fri, 1 Dec 2006 07:01:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/contrib/top sigconv.awk src/usr.bin/top Makefile sigdesc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2006 07:01:24 -0000 keramida 2006-12-01 07:01:19 UTC FreeBSD src repository (doc committer) Modified files: contrib/top sigconv.awk usr.bin/top Makefile Removed files: usr.bin/top sigdesc.h Log: The sigconv.awk script generates a sigdesc.h header file, which contains a sigdec[] vector of structures, but the generated output is missing braces around the initializer of each struct, which triggers warnings in WARNS=3: src/usr.bin/top/sigdesc.h:10: warning: missing braces around initializer src/usr.bin/top/sigdesc.h:10: warning: (near initialization for `sigdesc[0]') * Fix the sigconv.awk script to generate a header with initializers which look better. * Add rules to usr.bin/top/Makefile that rebuilds a new sigconv.h header which matches the correct signal set from the build-time version of `${DESTDIR}/usr/include/signal.h' (so sigconv.h doesn't get stale once changes are made to the header). * Remove the old sigconv.h header, now that it is autoupdated at build time. * Various Makefile style fixes (the committed Makefile was kindly submitted by Ruslan): - Reorder .PATH, PROG, SRCS and CFLAGS to match style.Makefile(5) - Split off the generated sources (sigdesc.h top.local.h) in an SRCS+= line of their own. - Add entries to CLEANFILES near the rules that generate the respective files. - Move the explicit rule which builds top.1 after the implicit rules which generate its dependencies. Reviewed by: ru, bde Submitted by: ru (Makefile) MFC after: 2 weeks Revision Changes Path 1.2 +9 -7 src/contrib/top/sigconv.awk 1.11 +20 -13 src/usr.bin/top/Makefile 1.2 +0 -42 src/usr.bin/top/sigdesc.h (dead)