#!/bin/sh

BASE=/usr/src

ctm -b $BASE -l |
awk '/^>/ { print $3 }' |
while read file; do
	if [ -r $BASE/$file.noipv6 ]; then
		if [ -r $BASE/$file.ctm ]; then
			:
		else
			echo creating $BASE/$file.ctm
			cp -p $BASE/$file.noipv6 $BASE/$file.ctm
		fi
	fi
done
