#!/bin/bash
#
# IBM Omni driver
# Copyright (c) International Business Machines Corp., 2000
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This library 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

if (($# == 0)) ;
then
	. ./devices.mak
	DEVICES=$DEVICELIST
else
	DEVICES="$@"
fi

MAKEFILES=

for i in $DEVICES ;
do
	MAKEFILES=$MAKEFILES" `echo $i | sed -e 's/~//g' -e 's/_/\\\\ /g'`"
done

MAKEFILES=$MAKEFILES" Makefile "
MAKEFILES=$MAKEFILES" common.mak"
MAKEFILES=$MAKEFILES" devices.mak"
MAKEFILES=$MAKEFILES" version.mak"
MAKEFILES=$MAKEFILES" DeviceTesters.mak"
MAKEFILES=$MAKEFILES" CUPS/Makefile"
MAKEFILES=$MAKEFILES" foomatic/Makefile"
MAKEFILES=$MAKEFILES" hppcl3/Makefile"
MAKEFILES=$MAKEFILES" tools/Makefile"
MAKEFILES=$MAKEFILES" test/Makefile"
MAKEFILES=$MAKEFILES" XMLParser/Makefile"
MAKEFILES=$MAKEFILES" XMLParser/libxml/Makefile"
MAKEFILES=$MAKEFILES" XMLParser/xml4c3_1_0-linux/Makefile"
MAKEFILES=$MAKEFILES" XMLParser/xerces-c1_3_0-linux/Makefile"
MAKEFILES=$MAKEFILES" gnome-print/gnome-print-admin/libgpaui/Makefile"
MAKEFILES=$MAKEFILES" gnome-print/gnome-print-admin/src/Makefile"
MAKEFILES=$MAKEFILES" gnome-print/gnome-print/libgnomeprint/Makefile"

VSLICKXNOPLUSNEWMSG=1

vs $MAKEFILES
