3 months agoCOPYING: explain the deleted advertising clause more clearly. master github/master
Tony Finch [Mon, 12 Apr 2010 16:38:19 +0000]
COPYING: explain the deleted advertising clause more clearly.

3 months agoweb: Advertise repository using native git protocol
Tony Finch [Wed, 31 Mar 2010 13:57:08 +0000]
web: Advertise repository using native git protocol

4 months agoMakefile: reinstate realclean's double negative logic
Tony Finch [Thu, 18 Mar 2010 16:28:14 +0000]
Makefile: reinstate realclean's double negative logic

The positive logic causes make to bomb out when there is no .git
directory.

Reported-by: Colin Watson <cjwatson@chiark.greenend.org.uk>

4 months agoweb/.htaccess: fix the redirects for the old test URLs.
Tony Finch [Tue, 16 Mar 2010 10:14:31 +0000]
web/.htaccess: fix the redirects for the old test URLs.

This requires a disgusting double redirect hack because Apache-1.3
percent-encodes ? and ; in URLs generated by RedirectMatch, but
not with plain Redirect.

4 months agoMakefile: remove double negative logic in realclean target
Tony Finch [Mon, 15 Mar 2010 19:00:06 +0000]
Makefile: remove double negative logic in realclean target

4 months agoMakefile: do not remove any ${DISTFILES} in the clean target.
Tony Finch [Mon, 15 Mar 2010 18:54:03 +0000]
Makefile: do not remove any ${DISTFILES} in the clean target.

4 months agoMakefile: add missing blank line at end of Changelog
Tony Finch [Mon, 15 Mar 2010 14:53:30 +0000]
Makefile: add missing blank line at end of Changelog

4 months agoRemove the upload script to the admin branch.
Tony Finch [Fri, 12 Mar 2010 19:36:26 +0000]
Remove the upload script to the admin branch.

4 months agoREADME: include an introductory paragraph
Tony Finch [Fri, 12 Mar 2010 19:06:39 +0000]
README: include an introductory paragraph

4 months agoreversion.sh: tidier version numbers for modified sources
Tony Finch [Fri, 12 Mar 2010 17:34:56 +0000]
reversion.sh: tidier version numbers for modified sources

4 months agoRelease unifdef-2.3 unifdef-2.3
Tony Finch [Fri, 12 Mar 2010 16:27:30 +0000]
Release unifdef-2.3

4 months agoMakefile: upload to github before chiark
Tony Finch [Fri, 12 Mar 2010 16:23:35 +0000]
Makefile: upload to github before chiark

4 months agoTweak the home page.
Tony Finch [Fri, 12 Mar 2010 16:21:27 +0000]
Tweak the home page.

Add the .htaccess file which keeps old URLs working.

4 months agoMake the home page and gitweb titles consistent.
Tony Finch [Fri, 12 Mar 2010 15:43:19 +0000]
Make the home page and gitweb titles consistent.

4 months agoRename get-version.sh to reversion.sh for fun.
Tony Finch [Fri, 12 Mar 2010 15:29:12 +0000]
Rename get-version.sh to reversion.sh for fun.

4 months agoMakefile: do not try to build unifdef.txt by default.
Tony Finch [Fri, 12 Mar 2010 15:23:40 +0000]
Makefile: do not try to build unifdef.txt by default.

DISTFILES shouldn't be in non-release targets.

4 months agoMerge commit 'book/master'
Tony Finch [Fri, 12 Mar 2010 12:23:26 +0000]
Merge commit 'book/master'

4 months agoAdd -V and -S flags to synopses
Tony Finch [Fri, 12 Mar 2010 12:22:51 +0000]
Add -V and -S flags to synopses

4 months agoMerge commit 'book/master'
Tony Finch [Fri, 12 Mar 2010 11:13:52 +0000]
Merge commit 'book/master'

4 months agoweb/index.html: link to github
Tony Finch [Fri, 12 Mar 2010 11:07:35 +0000]
web/index.html: link to github

4 months agoweb/index.html: link to github
Tony Finch [Fri, 12 Mar 2010 11:07:35 +0000]
web/index.html: link to github

4 months agoREADME: add information about obtaining unifdef using git.
Tony Finch [Fri, 12 Mar 2010 11:03:03 +0000]
README: add information about obtaining unifdef using git.

4 months agoMakefile: tweak upload target
Tony Finch [Fri, 12 Mar 2010 11:01:15 +0000]
Makefile: tweak upload target

Remove unsafe `git prune`. Push a copy to github.

4 months agoweb/index.html: Fix git clone URL.
Tony Finch [Fri, 12 Mar 2010 11:00:26 +0000]
web/index.html: Fix git clone URL.

4 months agoRelease unifdef-2.2 unifdef-2.2
Tony Finch [Fri, 12 Mar 2010 10:15:18 +0000]
Release unifdef-2.2

4 months agounifdefall: print debugging output to stderr
Tony Finch [Fri, 12 Mar 2010 10:08:04 +0000]
unifdefall: print debugging output to stderr

4 months agounifdefall: correct exit status if the clean-up rm fails
Tony Finch [Fri, 12 Mar 2010 10:04:14 +0000]
unifdefall: correct exit status if the clean-up rm fails

Reported-by: Bob Proulx <bob@proulx.com>

4 months agoget-version.sh: fix build in clean git working tree
Tony Finch [Fri, 12 Mar 2010 09:52:46 +0000]
get-version.sh: fix build in clean git working tree

`git show` exited non-zero which aborted the build.

4 months agoMakefile: fix version.h -> unifdef.c -> unifdef dependencies.
Tony Finch [Fri, 12 Mar 2010 09:34:18 +0000]
Makefile: fix version.h -> unifdef.c -> unifdef dependencies.

4 months agoget-version.sh fixes
Tony Finch [Fri, 12 Mar 2010 09:28:02 +0000]
get-version.sh fixes

Test for the existence of version.sh (not version.h> before sourcing it.
Cat the version files after re-writing them.
Use printf(1) to create version.h for portability.

4 months agoMakefile: safer "realclean" target
Tony Finch [Thu, 11 Mar 2010 21:41:45 +0000]
Makefile: safer "realclean" target

4 months agoRelease unifdef-2.1 unifdef-2.1
Tony Finch [Thu, 11 Mar 2010 21:17:58 +0000]
Release unifdef-2.1

4 months agoAdd a -V option to print the embedded version details.
Tony Finch [Thu, 11 Mar 2010 21:12:03 +0000]
Add a -V option to print the embedded version details.

4 months agoMakefile: remove release.sh from DISTFILES
Tony Finch [Thu, 11 Mar 2010 21:01:23 +0000]
Makefile: remove release.sh from DISTFILES

4 months agoMakefile: prune .git before uploading
Tony Finch [Thu, 11 Mar 2010 20:59:11 +0000]
Makefile: prune .git before uploading

4 months agoindex.html: mention the git glone command
Tony Finch [Thu, 11 Mar 2010 20:56:29 +0000]
index.html: mention the git glone command

4 months agoRe-do the website handling and add an upload target.
Tony Finch [Thu, 11 Mar 2010 20:52:26 +0000]
Re-do the website handling and add an upload target.

4 months agoTell git to ignore release files.
Tony Finch [Thu, 11 Mar 2010 20:28:13 +0000]
Tell git to ignore release files.

4 months agoMove release script into Makefile.
Tony Finch [Thu, 11 Mar 2010 20:27:04 +0000]
Move release script into Makefile.

4 months agoTell git to ignore output files.
Tony Finch [Thu, 11 Mar 2010 20:08:03 +0000]
Tell git to ignore output files.

4 months agoMakefile: do not clean inside .git directory.
Tony Finch [Thu, 11 Mar 2010 20:04:35 +0000]
Makefile: do not clean inside .git directory.

4 months agoEmbed version information from git into the unifdef binary.
Tony Finch [Thu, 11 Mar 2010 18:57:37 +0000]
Embed version information from git into the unifdef binary.

4 months agoMakefile: clean trailing whitespace.
Tony Finch [Thu, 11 Mar 2010 18:57:15 +0000]
Makefile: clean trailing whitespace.

4 months agoINSTALL: Note the CFLAGS and LDFLAGS make variables.
Tony Finch [Thu, 11 Mar 2010 18:56:58 +0000]
INSTALL: Note the CFLAGS and LDFLAGS make variables.

4 months agoRemove sccs, cvs, and svn revision tags.
Tony Finch [Thu, 11 Mar 2010 18:56:34 +0000]
Remove sccs, cvs, and svn revision tags.

4 months agoImproved debugging support. dotat-cvs unifdef-2.0
Tony Finch [Wed, 10 Mar 2010 17:42:54 +0000]
Improved debugging support.

Add line numbers to unifdef's debugging output. Flush the output stream
on each line when debugging to ensure stdout and stderr are properly
interleaved. Add a debugging mode to unifdefall.sh which outputs its
intermediate working files.

4 months agoForced commit to note change to test suite.
Tony Finch [Sun, 7 Mar 2010 18:11:07 +0000]
Forced commit to note change to test suite.

4 months agoAdjust tests for change in license header.
Tony Finch [Sun, 7 Mar 2010 17:56:06 +0000]
Adjust tests for change in license header.

The extra line at the beginning of if1.c caused the line numbers
in 'diff' output to change.  Rather than playing catch-up, simplify
the relevant tests to keep working if if1.c changes in other ways
in the future.

Submitted by: Jonathan Nieder <jrnieder@gmail.com>

4 months agoAdd the COPYING file to the release.
Tony Finch [Sat, 6 Mar 2010 14:40:15 +0000]
Add the COPYING file to the release.

4 months agoFix HTML markup snafu.
Tony Finch [Sat, 6 Mar 2010 14:38:50 +0000]
Fix HTML markup snafu.

4 months agoPut the tests under the two-clause BSD copyright licence for consistency.
Tony Finch [Sat, 6 Mar 2010 14:37:14 +0000]
Put the tests under the two-clause BSD copyright licence for consistency.

4 months agoAdd a COPYING file to consolidate licence terms in one place.
Tony Finch [Sat, 6 Mar 2010 14:30:26 +0000]
Add a COPYING file to consolidate licence terms in one place.

Remove the public domain declaration from runtests.sh so it is under the
same licence as the other files.

Improve the wording about the licensing of contributions.

4 months agoAdjust man page document title for backwards compatibility.
Tony Finch [Fri, 5 Mar 2010 13:05:38 +0000]
Adjust man page document title for backwards compatibility.

Reported by: Bob Proulx <bob@proulx.com>

5 months agoActually, don't drop the 1. from the version number.
Tony Finch [Tue, 23 Feb 2010 12:27:11 +0000]
Actually, don't drop the 1. from the version number.

Keeping it gives us more flexibility to change the numbering scheme
while ensuring it continues to go up.

5 months agoDrop 1. from the version number
Tony Finch [Mon, 22 Feb 2010 18:58:50 +0000]
Drop 1. from the version number

5 months agoImprove output of -S mode (list symbols with depths)
Tony Finch [Mon, 22 Feb 2010 18:58:30 +0000]
Improve output of -S mode (list symbols with depths)
Symbols tested in the same #if are listed on the same line.

5 months agoWe don't need to compile unifdef when preparing the release.
Tony Finch [Sun, 21 Feb 2010 16:55:04 +0000]
We don't need to compile unifdef when preparing the release.

5 months agoFix the release build to ensure that junk files are not included.
Tony Finch [Sun, 21 Feb 2010 16:53:20 +0000]
Fix the release build to ensure that junk files are not included.

We were failing to properly clean the tests directory.

Reported-by: Jonathan Nieder <jrnieder@gmail.com>

5 months agoUse -mdoc macro package when invoking nroff.
Tony Finch [Fri, 19 Feb 2010 20:43:13 +0000]
Use -mdoc macro package when invoking nroff.

5 months agoAdd a -S option for listing the nesting depth of symbols.
Tony Finch [Fri, 19 Feb 2010 20:25:50 +0000]
Add a -S option for listing the nesting depth of symbols.

Suggested by http://stackoverflow.com/questions/2012496

5 months agoA small tidy-up in process()
Tony Finch [Fri, 19 Feb 2010 20:08:37 +0000]
A small tidy-up in process()

5 months agoExpand ACCESSPERMS rather than conditionally #defining it.
Tony Finch [Fri, 19 Feb 2010 19:46:41 +0000]
Expand ACCESSPERMS rather than conditionally #defining it.

5 months agoDefine ACCESSPERMS on systems (like Cygwin) that lack it.
Tony Finch [Fri, 19 Feb 2010 18:35:26 +0000]
Define ACCESSPERMS on systems (like Cygwin) that lack it.

Suggested by Mark Rushakoff.

5 months agoLink to freshmeat.net for release announcements.
Tony Finch [Fri, 19 Feb 2010 17:30:50 +0000]
Link to freshmeat.net for release announcements.

5 months agoImprove portability to systems with native CRLF newlines.
Tony Finch [Fri, 19 Feb 2010 17:15:44 +0000]
Improve portability to systems with native CRLF newlines.

5 months agoRemove FreeBSD from manual page rubric, and update its date.
Tony Finch [Fri, 19 Feb 2010 17:11:39 +0000]
Remove FreeBSD from manual page rubric, and update its date.

5 months agoList INSTALL file on homepage
Tony Finch [Fri, 19 Feb 2010 16:44:02 +0000]
List INSTALL file on homepage

5 months agoFix a long-standing cpp compatibility bug.
Tony Finch [Fri, 19 Feb 2010 16:37:05 +0000]
Fix a long-standing cpp compatibility bug.

The -DFOO argument (without an explicit value) should define FOO to 1
not to the empty string.

5 months agoAdd support for CRLF newlines.
Tony Finch [Fri, 19 Feb 2010 16:31:08 +0000]
Add support for CRLF newlines.

As a side-effect, remove the dependency on strlcpy().

Based on a suggestion from Mark Rushakoff.

5 months agoFix tests to not rely on an uncommitted change.
Tony Finch [Fri, 19 Feb 2010 16:29:59 +0000]
Fix tests to not rely on an uncommitted change.

5 months agoMore tests of keyword edits
Tony Finch [Fri, 19 Feb 2010 16:03:44 +0000]
More tests of keyword edits

5 months agoTest #elif -> #if edit
Tony Finch [Fri, 19 Feb 2010 15:50:26 +0000]
Test #elif -> #if edit

6 months agounifdef.c: better diagnostics on write failure
Tony Finch [Wed, 20 Jan 2010 00:48:26 +0000]
unifdef.c: better diagnostics on write failure

6 months agounifdef.c: fix portability to 64 bit platforms.
Tony Finch [Tue, 19 Jan 2010 20:33:00 +0000]
unifdef.c: fix portability to 64 bit platforms.

printf("%.*s",i,s) expects an int not a ptrdiff_t

6 months agoFix English usage in wishlist comment
Tony Finch [Tue, 19 Jan 2010 18:22:53 +0000]
Fix English usage in wishlist comment

6 months agounifdef.c: re-arrange the introductory comment, #include lines, and
Tony Finch [Tue, 19 Jan 2010 18:03:02 +0000]
unifdef.c: re-arrange the introductory comment, #include lines, and
embedded copyright strings so that the FreeBSD version of the code
is tidier.

6 months agoUpdate manual date and copyright.
Tony Finch [Tue, 19 Jan 2010 17:33:53 +0000]
Update manual date and copyright.

6 months agoAdd -o outfile option, which can be used to specify an output file. The
Tony Finch [Tue, 19 Jan 2010 16:23:35 +0000]
Add -o outfile option, which can be used to specify an output file.  The
file can even be the same as the input file.  Idea from IRIX unifdef(1).
This version also fixes a bug in the NetBSD unifdef which refuses to
write to a -o outfile which does not exist.

Obtained from: Brian Ginsbach <ginsbach@NetBSD.org> via NetBSD

6 months agounifdefall: tidy copyright notice to match unifdef.c
Tony Finch [Tue, 19 Jan 2010 16:09:50 +0000]
unifdefall: tidy copyright notice to match unifdef.c

6 months agorelease.sh: Add INSTALL to list of tarball contents.
Tony Finch [Tue, 19 Jan 2010 13:37:00 +0000]
release.sh: Add INSTALL to list of tarball contents.

6 months agoAdd Jonathan Nieder to unifdefall's copyright declaration.
Tony Finch [Tue, 19 Jan 2010 13:36:22 +0000]
Add Jonathan Nieder to unifdefall's copyright declaration.

6 months agoClean up the Makefile.
Tony Finch [Fri, 15 Jan 2010 18:37:39 +0000]
Clean up the Makefile.

6 months agoAutomatic install support.
Tony Finch [Fri, 15 Jan 2010 18:33:05 +0000]
Automatic install support.

Add an install target to the Makefile. Using separate ${prefix} and
${DESTDIR} variables opens the door to hardcoding the path to unifdef
in unifdefall if we ever need to.

Move the installation instructions from the README to a new INSTALL
file to make it easier for packagers to omit irrelevant compilation
instructions from the binary package's documentation.

Submitted-by: Jonathan Nieder <jrnieder@gmail.com>

6 months agoMakefile: do not remove Changelog on clean
Tony Finch [Fri, 15 Jan 2010 17:43:17 +0000]
Makefile: do not remove Changelog on clean

Regenerating the Changelog requires access to the unifdef CVS
repository.

Submitted-by: Jonathan Nieder <jrnieder@gmail.com>

6 months agounifdefall: look for unifdef in $(dirname $0)
Tony Finch [Fri, 15 Jan 2010 17:41:21 +0000]
unifdefall: look for unifdef in $(dirname $0)

For debugging and for the test suite it is convenient is
unifdefall can be run in place without relying on unifdef being
installed elsewhere.  So change unifdefall to look for unifdef in
the containing directory.

For compatibility, if unifdef is not present in the directory
containing unifdefall, fall back to searching the $PATH for it.
Some one might have installed unifdef and unifdefall to
different directories.

With this change, 'make test' no longer fails in if1-a.sh when
unifdef is not present on the $PATH.  Also, the test suite will
be a little better at catching new regressions if an old version
of unifdef is installed, since the unifdefall tests will no
longer be testing the installed unifdef.

Submitted-by: Jonathan Nieder <jrnieder@gmail.com>

7 months agoFix ident string -- gcc optimised it away.
Tony Finch [Wed, 2 Dec 2009 15:21:22 +0000]
Fix ident string -- gcc optimised it away.

8 months agoInclude full CVS log in the Changelog.
Tony Finch [Fri, 27 Nov 2009 17:30:39 +0000]
Include full CVS log in the Changelog.

8 months agorelease.sh: remove tests/CVS from tarball, and upload files faster.
Tony Finch [Fri, 27 Nov 2009 17:24:25 +0000]
release.sh: remove tests/CVS from tarball, and upload files faster.

8 months agofix invalid array access when nesting limit exceeded
Tony Finch [Fri, 27 Nov 2009 17:21:26 +0000]
fix invalid array access when nesting limit exceeded

If the number of nested #if blocks exceeds 64, nest() increments
the nesting depth and then reports an error.  The message includes
the line number for the start of the current #if block, which is
read from past the end of the relevant array.

Avoid the out-of-bounds read by reporting the error and exiting
before the nesting depth has a chance to increase.

Submitted-by: Jonathan Nieder <jrnieder@gmail.com>

8 months agoruntests.sh: portability: . does not search current directory
Tony Finch [Fri, 27 Nov 2009 17:14:32 +0000]
runtests.sh: portability: . does not search current directory

POSIX.1-2008 dot searches only the $PATH and not the current
directory for pathnames with no / in them.  Accordingly, since
version 4.0-alpha, bash does not search the current directory
when in posix (sh) mode.  The fix is to specify ./ explicitly.

Submitted-by: Jonathan Nieder <jrnieder@gmail.com>

8 months agoInclude a link to the web page in a comment in unifdef.c
Tony Finch [Fri, 27 Nov 2009 15:40:10 +0000]
Include a link to the web page in a comment in unifdef.c

This is mainly for the benefit of the Linux kernel's stand-alone version.

8 months agoConsistent ordering of ${got} and ${exp} in the test script
Tony Finch [Fri, 27 Nov 2009 14:35:51 +0000]
Consistent ordering of ${got} and ${exp} in the test script

8 months agoInclude the tests in the web page
Tony Finch [Fri, 27 Nov 2009 14:34:09 +0000]
Include the tests in the web page

8 months agoImprove phrasing on web page
Tony Finch [Fri, 27 Nov 2009 14:32:49 +0000]
Improve phrasing on web page

8 months agoRun the tests in the correct directory
Tony Finch [Fri, 27 Nov 2009 14:30:02 +0000]
Run the tests in the correct directory

8 months agoAdd some unifdefall test cases.
Tony Finch [Fri, 27 Nov 2009 14:21:36 +0000]
Add some unifdefall test cases.

8 months agoEnsure we clean up after a successful test.
Tony Finch [Fri, 27 Nov 2009 14:20:59 +0000]
Ensure we clean up after a successful test.

8 months agoSimplify the test suite so that runtests.sh is not specific to unifdef.
Tony Finch [Fri, 27 Nov 2009 14:08:08 +0000]
Simplify the test suite so that runtests.sh is not specific to unifdef.

8 months agoTest suite tweaks.
Tony Finch [Fri, 27 Nov 2009 13:36:39 +0000]
Test suite tweaks.

Move the runtests script into the main source directory.
Remove the redundant .c. from the expected output filenames.
Run the tests in a separate working directory.
Include the tests in the release.

8 months agoAdditional tests from Bob Proulx <bob@proulx.com>
Tony Finch [Fri, 27 Nov 2009 13:08:58 +0000]
Additional tests from Bob Proulx <bob@proulx.com>
Add his copyright notice to all the old tests.