# This script must be sourced - it will not work if you run it in a sub-shell.

set _to_only="ascii lj ps ptx x10bm x10wd"
set _from_only="brush gif xxx"
set _both="cbm icon macp rast xbm xwd"

foreach i ( $_both $_from_only )
    foreach j ( $_both $_to_only )
	if ( $i != $j ) then
	    alias ${i}to${j} "( ${i}topbm | pbmto${j} )"
	endif
    end
end

unset _to_only _from_only _both
