06 December 2005 W. Michael Petullo * Fix two assertion failures. 01 December 2005 W. Michael Petullo * No longer call _fmt_ptrn_t_valid() at beginning of fmt_ptrn_open() because the data is not initialized yet. 01 May 2005 W. Michael Petullo * Added XML/DocBook article template. 28 March 2005 W. Michael Petullo * Rename libtemplate to libnewtemplate to avoid conflicts with other packages. * Fixed some code errors. 27 October 2004 W. Michael Petullo * Some compiler fixes (Thanks Gyepi Sam). 15 June 2004 W. Michael Petullo * Added Java source template. 02 June 2004 W. Michael Petullo * Fixed -s argument. 23 March 2004 W. Michael Petullo * Removed all .spec templates. 04 March 2004 W. Michael Petullo * Added buffer_clear(), used by fmt_ptrn_filled(). * Made some fixes to bugs revealed by pam_mount. 21 February 2004 W. Michael Petullo * Massive scrub of fmt_ptrn.c and buffer.c. * Added assertions of pre- and post-conditions. 09 February 2004 W. Michael Petullo * Use glib for upper and lower modifiers. 03 February 2004 W. Michael Petullo * Fixed bug I introduced when replacing strncat with g_strlcat. 28 January 2004 W. Michael Petullo * Started migrating more code to glib. 26 January 2004 W. Michael Petullo * Fixed seg. fault when before modifier is applied to a string with a value of "". 04 January 2004 W. Michael Petullo * RPM now ownes a bunch of directories like /usr/share/new. 08 December 2003 W. Michael Petullo * RPM builds okay with headers included. 07 December 2003 W. Michael Petullo * Alternatives can now be format strings: (%FOO:%(BAR)). 28 October 2003 W. Michael Petullo * Replaced O'Reilly code with glib (licensing issues). 26 October 2003 W. Michael Petullo * RPM specification not simply uses %{_mandir} (thanks Rudi Chiarito). 24 October 2003 W. Michael Petullo * Worked on RPM building. * Fixed build error related to printing usage. 31 August 2003 W. Michael Petullo * No longer compiles without libz. 12 August 2003 W. Michael Petullo * Fixed header files so that they reference . 22 Jun 2003 W. Michael Petullo * Copied updated pair.[ch] from pam_mount project. 22 Jun 2003 W. Michael Petullo * Fixed documentation...its remove_underscore not remove_underscores. 8 May 2003 W. Michael Petullo * New now prints to stdout if output file is "-." * Header files are now installed in $(prefix)/include/new. 6 May 2003 W. Michael Petullo * Started to add support for building a .deb file. 17 July 2002 W. Michael Petullo * Fixed bug in new which caused malfunction on %(FOO:ALTERNATE) where FOO was not defined. 14 July 2002 W. Michael Petullo * Now checks to ensure templates are regular files before trying to use them. * Fixed an RPM build problem which resulted in header_* being installed in the wrong place. * New_proj now prints commands as it executes them. * New_proj now uses default template if necessary again. * Removed debug statement about literals. 13 July 2002 W. Michael Petullo * Added pkgconfig support. 27 May 2002 W. Michael Petullo * Removed hard-coded -lz from src/Makefile.am. * Added xml_comment modifier. * Some templates now use common headers. * Errors encountered when processing a template modifier are now passed back to the main fmt_ptrn parser. 28 February 2002 W. Michael Petullo * Began using XML and xmlto in dry directory. * Man page XML source now uses refentry. 27 January 2002 W. Michael Petullo * Updated build system with respect to templates. 02 January 2002 W. Michael Petullo * Began to add x_comment modifiers for use with included headers. 26 December 2001 W. Michael Petullo * Began to add support for key/value input files. * Began to add support for including a standard header into templates. * Began to make modifier code look like xawtv's flexible codec handling. It is cleaner and supports adding new modifiers in a much nicer way. * Updated parse_kv () to use strsep. 10 December 2001 W. Michael Petullo * Changed reference to 1999 in default .cpp template to %(YEAR). Thanks Zachary P. Landau. 05 October 2001 W. Michael Petullo * Added newlines modifier. * Added no_newlines modifier. * Documented remove_underscore modifier. 23 July 2001 W. Michael Petullo * Made some template changes after using new-proj to make qtconv. 02 May 2001 W. Michael Petullo * Fixed error message printing when new_proj execs new. * Changed exit(1) to exit(EXIT_FAILURE) and exit(0) to exit(EXIT_SUCCESS). 26 April 2001 W. Michael Petullo * Cleaned up new new_proj code. 12 April 2001 W. Michael Petullo * Added -y parameter to new; forces file type. * Added -p parameter to new; sets file permissions. 19 February 2001 W. Michael Petullo * No more gzclose after fopen. 07 January 2001 W. Michael Petullo * zlib is no longer required. Now --enable-zlib configure argument is available. * Began to add/test support for several Linux distributions, Tru64 UNIX, FreeBSD, and OpenVMS. Thanks, Compaq, for your Test Drive program. * Cleaned up some compiler warnings. 01 January 2001 W. Michael Petullo * Wrapped Makefile clauses intended for local development in an automake if then. 18 November 2000 W. Michael Petullo * Added remove_underscore modifier. 18 November 2000 W. Michael Petullo * New now provides DAY, MONTH, and YEAR instead of DATE. * Updated templates to use DAY, MONTH, and YEAR. 05 November 2000 W. Michael Petullo * Added --set command line argument. * PAIR_DESTROY IS NOW PASSED TO BISTREE_INIT AND LIST_INIT -- watch for problems! 04 November 2000 W. Michael Petullo * Moved much of the .am, .sgml, etc. templates to a separate project, flyn_templates. * Replaced a bunch of foo->bar ? foo->bar : baz with foo && foo->bar ? foo->bar : baz. One of these was causing a core dump. * new_proj foo --list works again. 29 October 2000 W. Michael Petullo * Took out some || true's from Makefiles. 28 September 2000 W. Michael Petullo * Began to add a GNOME applet project. 24 September 2000 W. Michael Petullo * Added FIRSTNAME, MIDDLENAME, and LASTNAME to fillers. These are ripped out of the GECOS field of /etc/passwd. 03 September 2000 W. Michael Petullo * Got new_proj to work again. * Made a new project (wnc). Fixed some template bugs that came up. 15 August 2000 W. Michael Petullo * Cleaned up _handle_fmt_str. 02 August 2000 W. Michael Petullo * Added new_proj manpage to dry. * Fixed problem in new that cause a seg. fault when the file modifier was used on a non-existant file. 28 July 2000 W. Michael Petullo * Began to clean up SGML and use DocBook elements. * DRY files are not rebuilt when building distribution. 11 July 2000 W. Michael Petullo * Fixed docbook2X rpm; man pages now build. 11 July 2000 W. Michael Petullo * Fixed bug in parent directory generation which occured when all the directories in an absolute path existed. 08 July 2000 W. Michael Petullo * Added ability to make parent directories for specified files to new_proj. * Moved stuff to src, dry, include, etc. subdirectories. 07 July 2000 W. Michael Petullo * Man pages now written using Docbook. 24 June 2000 W. Michael Petullo * Removed parenthesis from word example in templates. 08 June 2000 W. Michael Petullo * Began to use SGML to employ DRY principle. * Now replaces %%(...) with %(...) in resulting file. 25 May 2000 W. Michael Petullo * Added -t command line argument which gives path to template. * Added comments: %(# This is a comment and will not be included in the destination file). 20 May 2000 W. Michael Petullo * Fixed problem figuring out filetype for files beginning with a dot. Thanks Jonathan B. Leffert! * Brought new_proj up to speed. 18 May 2000 W. Michael Petullo * Moved army templates to army_tex package. 15 May 2000 W. Michael Petullo * Cleaned up fmt_ptrn.c. * Documented fmt_ptrn.h. * Added mention of libfmt_ptrn to documentation. 12 May 2000 W. Michael Petullo * Moved some code to new_util.c from new.c and new_proj.c. * Fixed a whole bunch of crap. 12 May 2000 W. Michael Petullo * Moved some code from template.c to new.c. 08 May 2000 W. Michael Petullo * Moved a few globals into the fmt_ptrn_t datatype. * Got rid of fmt_ptrn_[(init)|(destroy)]; functionality moved to fmt_ptrn_[(open)|(close)]. 30 April 2000 W. Michael Petullo * Changed fmt_ptrn_readline to fmt_ptrn_gets, uses fgets interface. * Got rid of mallocs in _lookup by making pair used to lookup values persistent. 23 April 2000 W. Michael Petullo * Added template_filled function. * Cleaned up code; removed a lot of minor FIXMEs. 21 April 2000 W. Michael Petullo * Fixed _apply_before. * Buffers initialized to a sane length to avoid mallocs. 16 April 2000 W. Michael Petullo * Stack datatype is now static; should increase speed. * Added sizes.h, which defines sizes for static structures. * Implemented file modifier. * Template.c now uses ``while (readline) write'' approach. * Updated some templates to use PROJ_NAME. * Added leading _ to static variable in lib .c template. 12 March 2000 W. Michael Petullo * Added Michael Smith's fix to template.c; checks environment key/val pairs for being NULL before strduping them. Thanks! 09 March 2000 W. Michael Petullo * Cleaned up man page. * Released 1.0. 23 February 2000 W. Michael Petullo * Fixed army_memo template; had fullname, email, etc. hardcoded. * Added resume .tex template. 19 February 2000 W. Michael Petullo * Added mpeg_encode template, will be moved to mpeg_encode project eventually. * Began using binary search trees for key value maps. * Added pair_destroy () to clean up memory leak. * Added EMPTY_STR, a special format pattern. * Fillers are now a global in the fmt_ptrn library. This allows the modification and updating of them to be abstracted a little more. * Fixed a seg fault cause by forgetting to call pair_init (). * Tested all options, tested several templates, and fixed compile warnings. 03 February 2000 W. Michael Petullo * Add spec template name to corresponding line in gnu_c project. * Fixed problem which caused files created by new_proj to sometimes have garbage at the end. 31 January 2000 W. Michael Petullo * Started new_proj man page. * Ran indent on source. 30 January 2000 W. Michael Petullo * new_proj is now beginning to come to life. * Fixed a bug in list_rem_next. This is what was causing a core dump in new_proj; the parse error queue would be filled, emptied, and filled for the next template. Emptying the queue the second time dumped core because size == 2 but head == NULL. 26 January 2000 W. Michael Petullo * Changed method of handling Makefile and other filenames without extensions. If the filename has no extension, the whole filename is used when looking for a template directory. 25 January 2000 W. Michael Petullo * Got rid of a few memory leaks. * Cleaned up a bit. * Got rid of some unneeded dynamic memory use (mallocs, strdups, etc). 24 January 2000 W. Michael Petullo * Began to add line numbers to parse error messages. 20 January 2000 W. Michael Petullo * Began to add the concept of detecting and reporting parse errors. * Templates now take advantage of new modifiers. 18 January 2000 W. Michael Petullo * Added upper, lower, and basename modifiers. * Added *_delim modifiers. * Added fn modifier. * Removed BASENAME key: use basename modifier instead. * Added the ability to apply multiple modifiers in one format string. 16 January 2000 W. Michael Petullo * Added lib .h and .c templates. * Split project into a binary executable and shared library. * Began to add the concept of modifiers. 14 January 2000 W. Michael Petullo * Added missing negative sign in at_path () which caused new to not find some templates. 10 January 2000 W. Michael Petullo * Added ``CFLAGS = -Wall'' to .am default template. * Fixed the problem with realloc. * Fixed problem with alternates alway being written, whether there was a value for the given key or not. * Added a TODO template. 08 January 2000 W. Michael Petullo * Fixed writing to output file in new.c. I was writing extra carriage retunrs. * Began porting fmt_ptrn to C. Also ported new to C to demonstrate that fmt_ptrn worked in its new form. I wanted to be able to easily use fmt_ptrn's functionality in C code, as opposed to C++. 02 January 2000 W. Michael Petullo * Added AUTHORS template type. * Templates now reference RPM_BUILD_ROOT, WEB_DIR, and RPM_TOP_DIR rather than hard coded directories. * Added %(ENV:alternate) syntax (see README). 28 December 1999 W. Michael Petullo * Cleaned up new.cpp a bunch. 04 December 1999 W. Michael Petullo * Made GLOBAL_TEMPLATE_DIR configured by autoconf. * Got rid of several global variables. 21 November 1999 W. Michael Petullo * Added --list argument to list available templates, given a filename. * Cleaned up code a bit. 06 November 1999 W. Michael Petullo * Cleaned up a few templates. 02 October 1999 W. Michael Petullo * Added template for Xinvest files. 29 September 1999 W. Michael Petullo * Removed debug statement which printed date. * Fixed problem in .spec and .in templates. 20 September 1999 W. Michael Petullo * Fixed bug causing the year to be dropped for long months (ie: September). A string was too small. 18 September 1999 W. Michael Petullo * Added --force or -f option. * Templates are now compressed in the build process, templates are again plain text in the source tree. * Updated freshmeat to point to http://www.flyn.org/src/new.tar.gz instead of version specific filename. 16 September 1999 W. Michael Petullo * Added ability to read gzip template files. 11 September 1999 W. Michael Petullo * Checks for existing file before overwriting. * Added README file. * Cleaned up templates. 29 August 1999 W. Michael Petullo * Date format is now 1 January 2000 instead of 1 JAN 2000. 01 AUG 1999 W. Michael Petullo * Added a letter template for tex documents. * Removed #include from new.cpp.