# Builds the commands that also 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('archive-cache-revision.sh'),
         env.Shell('categories.sh'),
         env.Shell('make-category.sh'),
         env.Shell('archive-cached-revisions.sh'),
         env.Shell('category-readme.sh'),
         env.Shell('make-version.sh'),
         env.Shell('archive-readme.sh'),
         env.Shell('delete-branch.sh'),
         env.Shell('noop.sh'),
         env.Shell('archive-uncache-revision.sh'),
         env.Shell('delete-category.sh'),
         env.Shell('previous-patch-level.sh'),
         env.Shell('branch-readme.sh'),
         env.Shell('get-archive-name.sh'),
         env.Shell('revisions.sh'),
         env.Shell('branches.sh'),
         env.Shell('make-archive.sh'),
         env.Shell('version-readme.sh'),
         env.Shell('cat-archive-log.sh'),
         env.Shell('make-branch.sh'),
         env.Shell('versions.sh')]

libexec_objects+=objects

install_dir=env['libexec_dir'] + '/arch/archives'

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)

