Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
lpdfilter
hplip-ppd.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hplip-ppd.sh of Package lpdfilter
#!/bin/sh # # Parse ppd files of hplip for lpdfilter # TAB="$(echo -en '\t')" for tmp in $(grep -liE "\*ModelName:[ ${TAB}]+\"(HP .*)\"" *.ppd 2> /dev/null) ; do if test -e "$tmp" ; then model="$(sed -n 's/^\*ModelName:[ ${TAB}]\+\"\([^\"]*\)\"/\1/p' < $tmp)" command="$(sed -n "/^\*FoomaticRIPOptionSetting Model=[^:]\+:[ ${TAB}]*\"/,/^\*End/ { s/^\*[^\"]\+\"// :join /\(&&\|^\*End\)\$/{N s/\(&&\|^\*End\)\n// b join } s/\"$// s/"/\"/gp }" < $tmp)" echo "$model:$command" fi done
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor