# Builds the commands for making it easy to create tarballs and web pages..

# 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('distribution-name.sh'),
         env.Shell('make-library-browser.sh'),
         env.Shell('patch-details.sh'),
         env.Shell('patch-set-web.sh'),
         env.Shell('update-distributions.sh')]

libexec_objects+=objects

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

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

helpers=Split('browser-display.html browser-help-versions.html \
browser-right.html \
browser-help-branches.html    browser-help.html           browser-top.html \
browser-help-categories.html  browser-left.html           browser.html \
browser-help-creators.html    browser-nav.html \
details.awk left-index.awk      revisions-right-index.awk \
distribution-right-index.awk   left-table.awk       right-index.awk \
file-details.awk               patch-list-rows.awk \
Help.category Help.category_title Help.list')
libexec_install+=env.Install(install_dir,helpers)
