# Builds the commands that modify archives.

# Copyright 2003 Walter Landry

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; version 2 dated June, 1991.

# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA

Import('env','libexec_objects','libexec_install')

objects=[env.Shell('arch-rmrf.sh'),
         env.Shell('get-patch.sh'),
         env.Shell('push-mirror.sh'),
         env.Shell('build-by-patching.sh'),
         env.Shell('get.sh'),
         env.Shell('putdir.sh'),
         env.Shell('build-revision.sh'),
         env.Shell('import.sh'),
         env.Shell('putlast.sh'),
         env.Shell('commit.sh'),
         env.Shell('lock-branch.sh'),
         env.Shell('wd-txn.sh'),
         env.Shell('copy-from-archive-cache.sh'),
         env.Shell('lock-revision.sh'),
         env.Shell('copy-from-fresh-start-base.sh'),
         env.Shell('make-lock.sh')]

libexec_objects+=objects

install_dir=env['libexec_dir'] + '/arch/archive-transactions'

libexec_install+=[env.Link_Install(install_dir,objects)]

## libexec_install+=env.Install(install_dir,objects)
## libexec_install+=[env.Symlink(install_dir,objects)]

helpers=Split('Help.category Help.category_title Help.list')
libexec_install+=env.Install(install_dir,helpers)
