#!/bin/sh

SB_AUTOMAKE_WRAPPER=sb_automake_wrapper

AUTOMAKE_PROGRAMS="automake automake-1.4 automake-1.7 automake-1.8 automake-1.9 aclocal aclocal-1.4 aclocal-1.7 aclocal-1.8 aclocal-1.9 "

function do_links()
{
	for PROG in $AUTOMAKE_PROGRAMS; do
		ln -sf $SB_AUTOMAKE_WRAPPER $PROG;
	done
}

function remove_links()
{
	for PROG in $AUTOMAKE_PROGRAMS; do
		rm -f $PROG;
	done
}



case $1 in
	create)
		do_links;
		;;
	remove)
		remove_links;
		;;
	*)
		echo "usage: autotools_wrapper_links [create | remove]";
		exit 1;
		;;
esac
