# $Header: /home/users/hurtta/cvsroot/mail/elmme+/ConfTool/GenHashMarks,v 1.2 2017/05/03 19:34:20 hurtta Exp $

case "$hostname" in
     '')	H="aaa.example.org" ;;
     *.*)	H="$hostname" ;;
     *)		H="$hostname.example.org";;
esac

cat >bin/elm.hashmarks <<'EOM'
#
EOM

	$echo "* Copying content of doc/hash.marks (with some editions)"
	$sed -e "s/^# usermap:, or usermap-file: is required .*\$/usermap:	root	\"$hostname-root\"	\"$hostname admin\" <root@$H>/" \
 -e "s/^# usermap-file: /usermap-file: /" "$source_dir/doc/hash.marks" > bin/elm.hashmarks

