printf ', '
fi
- cat <<-EOC
- case when filetype = 'd' then
- rtrim(path,'/') || '/'
- when filetype = 'l' then
- printf('%s -> %s', path, target)
- else
- path
- end as path
- EOC
+ printf "case\n";
+ printf "when filetype = 'd' then rtrim(path,'/') || '/'\n"
+ printf "when filetype = 'l' then printf('%s -> %s', path, target)\n"
+ printf "else path end as path\n"
fi
printf 'from packagefiles_pkgid\nwhere true\n'
if [ -n "$globlist" ]; then