# Builds the commands for using and manipulating things in the local
# pristine cache

# 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('add-pristine.sh'),
         env.Shell('file-undo.sh'),
         env.Shell('redo.sh'),
         env.Shell('cache-dir.sh'),
         env.Shell('find-in-cache.sh'),
         env.Shell('take-from-cache.sh'),
         env.Shell('cached-index.sh'),
         env.Shell('lock-pristine.sh'),
         env.Shell('undo.sh'),
         env.Shell('copy-from-cache.sh'),
         env.Shell('make-cache-temp-dir.sh'),
         env.Shell('wd-mv-pristine.sh'),
         env.Shell('delete-pristine.sh'),
         env.Shell('old-file.sh'),
         env.Shell('what-changed.sh'),
         env.Shell('file-diffs.sh'),
         env.Shell('pristines.sh')]

libexec_objects+=objects

install_dir=env['libexec_dir'] + '/arch/local-cache'

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

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