#!/bin/sh
# Preparation :
# ===========
# This has to be done just ONCE: create an ~/.rpmmacros file with the following:
#    %_topdir /dev/shm/build
#    %debug_package %{nil}
#
# Where %_topdir is wherever you want your build tree to reside.
#
# Then, you'd do something like this:
#
# cd /usr/src/redhat
# find | cpio -pdm /dev/shm/build/
#
#
# build rpms : Assumes that initial setup mentioned above is done.
# 
# Usage : ./make_rpms <tar file generated by make_dist>
#
base=`dirname $0`
cd $base/../../

rpmbuild -tb --define "_vendor fedora" $1
rpmbuild -tb --define "_vendor suse" $1

