debian/0000755000000000000000000000000011536510251007165 5ustar debian/docs0000644000000000000000000000000711340663765010051 0ustar README debian/control0000644000000000000000000000104211444303267010572 0ustar Source: unifdef Section: devel Priority: optional Maintainer: Bob Proulx Build-Depends: debhelper (>= 8.0.0) Standards-Version: 3.9.1 Homepage: http://dotat.at/prog/unifdef/ Package: unifdef Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, cpp Description: Remove cpp '#ifdef' lines from files The unifdef utility selectively processes conditional cpp(1) directives. It removes from a file both the directives and any additional text that they specify should be removed, while otherwise leaving the file alone. debian/rules0000755000000000000000000000206711444301667010261 0ustar #!/usr/bin/make -f # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif build: build-stamp build-stamp: dh_testdir $(MAKE) CFLAGS="$(CFLAGS)" $(MAKE) test touch build-stamp clean: dh_testdir rm -f build-stamp rm -f unifdef rm -f version.h rm -f tests/*.out tests/*.err tests/*.rc dh_clean install: build dh_testdir dh_testroot dh_clean dh_installdirs $(MAKE) install prefix=/usr DESTDIR=$(CURDIR)/debian/unifdef # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installchangelogs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/watch0000644000000000000000000000010011357713020010205 0ustar version=3 http://dotat.at/prog/unifdef/unifdef-([.\d+]+).tar.gz debian/changelog0000644000000000000000000001165711536500052011047 0ustar unifdef (2.6-1) unstable; urgency=low * New upstream release. -- Bob Proulx Tue, 22 Feb 2011 21:31:52 -0700 unifdef (2.5-1) unstable; urgency=low * New upstream release. -- Bob Proulx Tue, 08 Feb 2011 14:32:07 -0700 unifdef (2.4-1) experimental; urgency=low * New upstream release. * Minor spelling corrections in the documentation. * Minor build updates in the Makefile. This enables cleaning up the Debian build rules somewhat. * Increase debhelper compat level to 8. * Increase standards conformance version to 3.9.1. -- Bob Proulx Wed, 14 Sep 2010 17:20:00 -0600 unifdef (2.3-1) unstable; urgency=low * New upstream version. * Correct unifdefall's exit status if the cleanup rm fails. * Man page updates. -- Bob Proulx Sat, 03 Apr 2010 01:00:39 -0600 unifdef (2.1-1) unstable; urgency=low * New upstream version. * unifdef gains embedded version information plus -V to display it. -- Bob Proulx Fri, 12 Mar 2010 20:38:33 -0700 unifdef (1.357-1) unstable; urgency=low * New upstream version. * Fix copyright file snafu. With thanks to Jonathan Nieder. (Closes: 572648) * Upstream licensing of files simplified and converged to the one project global 2-clause license leaving only the unifdefall file with the legacy 3-clause license. Much simpler. * Upstream now includes an explicit COPYING file with license details. * Removed Debian patch for man page formating. Fixed upstream. -- Bob Proulx Mon, 08 Mar 2010 23:32:38 -0700 unifdef (1.353-1) unstable; urgency=low * New upstream version. * Track distribution file name changes. -- Bob Proulx Wed, 24 Feb 2010 16:37:07 -0700 unifdef (1.352-1) unstable; urgency=low * New upstream version. (Closes: 557649) * The upstream maintainer is now releasing standalone distributions. This package switches to the new distribution bundle. * Switch to dpkg-source 3.0 (quilt) format. -- Bob Proulx Sat, 20 Feb 2010 22:31:47 -0700 unifdef (1.0+20080502-1) unstable; urgency=low * Sync with latest FreeBSD version of unifdef. This is effectively a new upstream version. * Include upstream unifdefall script to remove all ifdefs. This adds a dependency upon 'cpp'. (Closes: #406880) * Don't require at least one symbol when using -k. (Closes: #401182) -- Bob Proulx Sun, 01 Nov 2009 01:16:17 -0700 unifdef (1.0+20030701-3) unstable; urgency=low * Acknowledge QA upload. * Retain as maintainer. (Closes: #553462) * Merge QA NMU with maintainer version. * Remove unneeded actions in configure target. * Fix FTBFS due to libc addition of conflicting symbol 'getline'. (Closes: #552879) * Increase debhelper compat level to 7. * Increase standards conformance version to 3.8.3. * Appease lintian warning about ignoring make clean return status by no longer ignoring it. * Original version: 1.0+20030701-2 * Original date: Fri, 30 Oct 2009 11:33:33 -0600 -- Bob Proulx Sat, 31 Oct 2009 11:11:15 -0400 unifdef (1.0+20030701-2) unstable; urgency=low * QA upload. + Set maintainer to Debian QA Group . * Rename local getline func to local_getline in unifdef.c. (Closes: #552879). * Make clean not ignore errors. * Bump debhelper build-dep to 5. * Move DH_COMPAT from rules to compat and set to 5. * Bump Standards Version to 3.8.3. -- Barry deFreese Sat, 31 Oct 2009 11:11:14 -0400 unifdef (1.0+20030701-2~1) unstable; urgency=low * Fix FTBFS due to libc addition of conflicting symbol 'getline'. (Closes: #552879) * Increase debhelper compat level to 7. * Increase standards conformance version to 3.8.3. * Appease lintian warning about ignoring make clean return status by no longer ignoring it. -- Bob Proulx Fri, 30 Oct 2009 11:33:33 -0600 unifdef (1.0+20030701-1) unstable; urgency=low * Switch to current FreeBSD version of unifdef. This is effectively a switch to a new upstream version. Really it is switching to a different branching of the original code base. * Suggestion to switch to the newer FreeBSD version. (Closes: #234054) * Whitespace is now allowed at the beginning of #if line before the '#' character. (Closes: #204349) * Whitespace is now generally ignored around the preprocessor directives. This allows indention of preprocessor control flow. * Previously only "#ifdef" and "#ifndef" preprocessor controls were handled giving the program the justifiable name of "unifdef". Now general "#if" processing such as "#if defined(FOO)" and boolean expresions of those constructs are allowed. -- Bob Proulx Sat, 3 Jul 2004 18:09:39 -0600 unifdef (1.0-1) unstable; urgency=low * First Debian packaging. -- Bob Proulx Wed, 26 Feb 2003 10:49:15 -0700 debian/compat0000644000000000000000000000000211444261343010366 0ustar 8 debian/README.Debian0000644000000000000000000000114311444254140011225 0ustar unifdef ------- The unifdef program originally appeared in 2.9BSD from sources contributed by Dave Yost. Tony Finch adopted the project for FreeBSD 4.7 and has maintained it since. Recently the project was split out from FreeBSD and is now maintained as a standalone project to encourage wider use. The upstream home page is: http://dotat.at/prog/unifdef/ Sources are maintained in git in the upstream repository at: git://dotat.at/unifdef.git Collaboration is available on GitHub: http://github.com/fanf2/unifdef -- Bob Proulx , Wed, 15 Sep 2010 17:36:00 -0600 debian/source/0000755000000000000000000000000011340722372010467 5ustar debian/source/format0000644000000000000000000000001411357716354011710 0ustar 3.0 (quilt) debian/unifdef.manpages0000644000000000000000000000002711340666420012324 0ustar unifdef.1 unifdefall.1 debian/copyright0000644000000000000000000001140711531107550011122 0ustar This is the Debian GNU/Linux packaged version of the unifdef program. The original program appeared in 2.9BSD from sources contributed by Dave Yost. This program is a rewrite to support ANSI C by Tony Finch. This program is now maintained as a standalone application. This package was put together by Bob Proulx from sources downloaded from the following location. http://dotat.at/prog/unifdef/ Upstream Authors: Rewrite by Tony Finch Additional contributions by: Bob Proulx Jonathan Nieder Anders H Kaseorg Ben Hutchings at Solarflare Communications Other contributions are listed in the Changelog. unifdef copyright licence ------------------------- All files in this package are distributed under the two-clause BSD copyright licence, except for the manual page unifdef.1 which has a three-clause BSD copyright licence. Unifdef was derived from software contributed to Berkeley by Dave Yost. It was rewritten to support ANSI C by Tony Finch. The original version of unifdef.c carried the four-clause BSD copyright licence. None of its code remains in this version (though some of the names remain) so it now carries the more liberal two-clause licence. Unless otherwise stated, the files in this package are: Copyright (c) 2002 - 2011 Tony Finch unifdefall.sh is Copyright (c) 2002 - 2010 Tony Finch Copyright (c) 2009 - 2010 Jonathan Nieder Some files in the tests directory are: Copyright 2004, 2008 Bob Proulx The two-clause BSD copyright licence applying to all the above files is: 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. The three-clause BSD copyright licence for the manual page unifdef.1 is below. The fourth advertising clause that used to appear between clauses 2 and 3 was rescinded by the University of California Berkeley in 1999. ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Copyright (c) 1985, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 2002 - 2010 Tony Finch . 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. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.