# Builds the commands for revision libraries.

# 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('cat-library-file.sh'),
         env.Shell('library-branches.sh'),
         env.Shell('library-remove.sh'),
         env.Shell('copy-from-library.sh'),
         env.Shell('library-categories.sh'),
         env.Shell('library-revisions.sh'),
         env.Shell('file-history.sh'),
         env.Shell('library-file.sh'),
         env.Shell('library-versions.sh'),
         env.Shell('library-add.sh'),
         env.Shell('library-find.sh'),
         env.Shell('my-revision-library.sh'),
         env.Shell('library-archives.sh'),
         env.Shell('library-log.sh'),
         env.Shell('touched-files-prereqs.sh')]

libexec_objects+=objects

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

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

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