cvs commit: projects/csup config.c config.h main.c parse.y proto.c

Maxime Henrion mux at FreeBSD.org
Tue Feb 28 18:29:56 PST 2006


mux         2006-03-01 02:29:56 UTC

  FreeBSD projects repository

  Modified files:
    csup                 config.c config.h main.c parse.y proto.c 
  Log:
  - Introduce a new coll_override() function to override a collection with
    another one.
  - Use the new coll_override() in main() to remember the command line
    options that force an option or a value in all collections.  Pass it
    to config_init() instead of all those boolean flags.
  - Shuffle some code in config_init() to make it a bit nicer and more
    close to what is done in CVSup.
  - Make it so the struct config is not a global variable and properly
    free() it along with all the collections after we are finished
    updating.  The list of collections is still static and copied in the
    struct config once built, because of yacc.
  - Now that it's easy (one line to add) to do so, implement the -i option.
    This is used to restrict the updates to files that match the provided
    pattern (multiple patterns can be provided with multimple -i flags,
    and they will be OR'ed together).
  
  Revision  Changes    Path
  1.45      +162 -104  projects/csup/config.c
  1.33      +8 -3      projects/csup/config.h
  1.33      +37 -14    projects/csup/main.c
  1.15      +2 -7      projects/csup/parse.y
  1.82      +3 -2      projects/csup/proto.c


More information about the cvs-all mailing list