File make.lost of Package ghostscript-library
#!/bin/bash tab="$(echo -en '\t')" devices="$(bin/gs -h 2>&1 | sed -n '/^Available devices:/,/Search path:/p' |\ grep -vE '(Available devices:|Search path:)')" descr="$(cat src/*.mak contrib/*.mak|sed -n '/Catalog/,/End of catalog/p' |\ grep -E "^#( [\*\+]|$tab)" |\ sed "s@(\([^ ()]*\))@\1@" |\ sed "s@^#\( [\*\+]$tab\|$tab\)@@g")" for d in $devices; do descr="$(echo "$descr" | grep -vE "^$d[ $tab]")" done echo "$descr"