Blame DEVELOPING

Packit Service 392537
Notes For Developers
Packit Service 392537
====================
Packit Service 392537
Packit Service 392537
This document describes a few basic tasks for managing the codebase;
Packit Service 392537
see http://wiki.zmanda.com/ for more detailed developer-oriented
Packit Service 392537
documentation.
Packit Service 392537
Packit Service 392537
Adding Gnulib Modules
Packit Service 392537
---------------------
Packit Service 392537
Packit Service 392537
Edit the clearly marked section in gnulib/regenerate/regenerate,
Packit Service 392537
then re-run that script as directed below.
Packit Service 392537
Packit Service 392537
Updating Gnulib
Packit Service 392537
---------------
Packit Service 392537
Packit Service 392537
This should probably be done after most releases, so that we have
Packit Service 392537
adequate time to uncover any bugs or problems in the new gnulib before
Packit Service 392537
we make another release.
Packit Service 392537
Packit Service 392537
To update the gnulib files included with Amanda, you'll first need a git
Packit Service 392537
working copy of gnulib; let's call it $GNULIB_BR:
Packit Service 392537
Packit Service 392537
  cd /tmp
Packit Service 392537
  git clone git://git.savannah.gnu.org/gnulib.git
Packit Service 392537
  GNULIB_BR=/tmp/gnulib
Packit Service 392537
Packit Service 392537
See http://www.gnu.org/software/gnulib/ for more information.  Then, in the
Packit Service 392537
root of the Amanda source, run
Packit Service 392537
Packit Service 392537
  GNULIB_TOOL=$GNULIB_BR/gnulib-tool ./gnulib/regenerate/regenerate
Packit Service 392537
Packit Service 392537
Use 'svn status' to figure out what changed, and 'svn add' / 'svn rm'
Packit Service 392537
to inform Subversion.  Then re-run autogen, configure, make, and test
Packit Service 392537
the result.
Packit Service 392537
Packit Service 392537
Get the object ID of the latest commit, using 'git show', and replace the
Packit Service 392537
previous object ID in Amanda's gnulib/regenerate/regenerate, so that other
Packit Service 392537
developers can access the same "release" of gnulib as you did.
Packit Service 392537
Packit Service 392537
Updating Libtool
Packit Service 392537
----------------
Packit Service 392537
Packit Service 392537
Libtool includes such useful files as config/config.guess.
Packit Service 392537
Occasionally (probably right after a release), these files should be
Packit Service 392537
updated.  On a machine with libtool installed, simply run 
Packit Service 392537
  libtoolize --force --copy
Packit Service 392537
Packit Service 392537
Then use 'svn status' to see what changed, test it out, and commit.
Packit Service 392537
Packit Service 392537
Updating Gettext
Packit Service 392537
----------------
Packit Service 392537
Packit Service 392537
The gettext library contains a significant number of files.  Assuming
Packit Service 392537
you have the proper version of gettext installed, these files can be
Packit Service 392537
updated by running
Packit Service 392537
Packit Service 392537
  po/reautopoint
Packit Service 392537
Packit Service 392537
and then adjusting as appropriate with 'svn add' / 'svn rm', testing,
Packit Service 392537
and committing.  Note that this script post-processes the results of
Packit Service 392537
autopoint rather extensively, and will probably need to be adjusted
Packit Service 392537
for a new version of autopoint.