# SConscript for Altogether
# $Id: SConscript 421 2004-06-16 08:09:49Z eric $
# Copyright 2007 Eric L. Smith <eric@brouhaha.com>

# Altogether is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.  Note that I am not
# granting permission to redistribute or modify Altogether under the
# terms of any later version of the General Public License.

# Altogether 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 (in the file "COPYING"); if not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111, USA.

Import('env source_release_dir snapshot_dir')

proms = Split ("""53x.3 55x.3 60x.3 61x.3 62x.3 63x.3 64x.3 65x.3
                  c0.3 c1.3 c2.3 c3.3""")

ucode_zip = env.ZipFlat ('AltoIIXM_ucode.zip', proms)

default_targets = [ucode_zip]
Default (default_targets)

#-----------------------------------------------------------------------------
# install
#-----------------------------------------------------------------------------

env.Alias (target = 'install',
           source = env.Install (dir = env ['destdir'] + env ['libdir'],
                                 source = default_targets))

#-----------------------------------------------------------------------------
# source tarball
#-----------------------------------------------------------------------------

dist_files = ['SConscript'] + proms

env.Distribute (source_release_dir, dist_files)

env.Distribute (snapshot_dir, dist_files)

