Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
libwnck2
libwnck2_spec-update.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libwnck2_spec-update.sh of Package libwnck2
#!/bin/bash # Autobuild doesn't support package names with macros. This script will update versions in package names. # Usage: Automatically called from spec file by: # libwnck2_spec-update.sh DIR BASE_NAME libnames... if ! test -f $1/$2.spec ; then exit fi BASE=$1/$2 shift 2 for PKGNAME in $@ ; do # Packages with name ending by number needs separator if test x`echo $PKGNAME | sed "s/.*[0-9]$//"` = x ; then SEPARATOR=- else SEPARATOR= fi sed -i " # Copy ${PKGNAME}_name to hold space /^%define ${PKGNAME}_name / { h; s/^%define ${PKGNAME}_name //; x; }; # Update ${PKGNAME}_name everywhere /$PKGNAME$SEPARATOR[0-9][-_0-9]*/ { G; s/$PKGNAME$SEPARATOR[0-9][-_0-9]*\(.*\)\n\(.*\)/$PKGNAME$SEPARATOR\2\1/; };" $BASE.spec 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