Projects
Eulaceura:Mainline:GA
python-rpm-generators
_service:obs_scm:pythondeps.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:pythondeps.sh of Package python-rpm-generators
#!/bin/bash [ $# -ge 1 ] || { cat > /dev/null exit 0 } case $1 in -P|--provides) shift # Match buildroot/payload paths of the form # /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR # generating a line of the form # python(abi) = MAJOR.MINOR # (Don't match against -config tools e.g. /usr/bin/python2.6-config) grep "/usr/bin/python.\...$" \ | sed -e "s|.*/usr/bin/python\(.\...\)|python(abi) = \1|" ;; -R|--requires) shift # Match buildroot paths of the form # /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/ and # /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/ # generating (uniqely) lines of the form: # python(abi) = MAJOR.MINOR grep "/usr/lib[^/]*/python.\.../.*" \ | sed -e "s|.*/usr/lib[^/]*/python\(.\...\)/.*|python(abi) = \1|g" \ | sort | uniq ;; esac exit 0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2