#!/bin/bash

. ${TOOLKIT}-functions.sh

# select source install files based on apache2 major version
#
a2_version=$(dpkg -l apache2 | tail -1 | sed -e 's/^ii  apache2 *//' -e 's/ .*//')
case $a2_version in
  2.2.*)	search_path_append "2.2" ;;
  2.4.*)	search_path_append "2.4" ;;
  *)		echo " ERROR: apache2 version $a2_version UNSUPPORTED" >&2
  		exit 1
		;;
esac

exit 0
