#!/bin/bash
# $Id: update_configs,v 1.2 2003/02/01 04:46:11 mrustad Exp $
#
# Script for updating config files when config.in files change.
# Mark D. Rustad, BRECIS Communications Corp.
#
# The first argument is the command to configure, config or menunconfig
#
# The remaining arguments are the config files to update

cmd=$1

shift

for fn in "$@"
do
	cp $fn .config
	make $cmd
	read -p "Update $fn ?" answer
	case "$answer" in
	"yes"|"y"|"")
		echo Updating $fn
		cp .config $fn
		;;
	"no")
		echo NOT updating $fn
		;;
	*)
		echo Exiting
		exit 1
		;;
	esac
done
