#!/bin/sh
# Simple script to set up the configuration symlink for a new distribution.

TARGET=${1-'unspecified'}

if [ ! -f "./configs/${TARGET}.mk" ] ; then
  echo "$0: No configuration named '${TARGET}' available.  Choices are:"
  (cd configs ; ls *.mk | \
       sed -e '/^basic.mk$/d' -e '/^current.mk$/d' -e 's@\.mk$@@')
  exit 1
fi
cd ./configs
rm -f current.mk
ln -s ${TARGET}.mk current.mk
