Projects
Multimedia
kodi.binary-addons
pre_checkin.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pre_checkin.sh of Package kodi.binary-addons
#!/bin/bash name=kodi.binary-addons # Please edit kodi.spec and kodi.changes only. *-noX.* files are generated from kodi.* files with this pre_checkin.sh script sed -e "s/%define noX_build 0/%define noX_build 1/g s/^Name:.*$name/&-noX/" $name.spec > $name-noX.spec cp $name.changes $name-noX.changes # Kodi platforms armv6_platforms="raspberry-pi" armv7_platforms="raspberry-pi2" # Generate kodi(-noX)-platformXXX # armv6 boards for BOARDNAME in $armv6_platforms; do ARCH_RESTRICTIONS="armv6l armv6hl" # Not used for now # Enable platform build for the given platform (only noX version) sed -e "s/%define noX_build 0/%define noX_build 1/g s/%define kodi_platform none/%define kodi_platform $BOARDNAME/g s/%define kodi_player none/%define kodi_player omxplayer/g s/^Name:.*$name/&-noX-$BOARDNAME/" $name.spec > $name-noX-$BOARDNAME.spec cp $name.changes $name-noX-$BOARDNAME.changes done for BOARDNAME in $armv7_platforms; do ARCH_RESTRICTIONS="armv7l armv7hl" # Enable platform build for the given platform (only noX version) sed -e "s/%define noX_build 0/%define noX_build 1/g s/%define kodi_platform none/%define kodi_platform $BOARDNAME/g s/%define kodi_player none/%define kodi_player omxplayer/g s/^Name:.*$name/&-noX-$BOARDNAME/" $name.spec > $name-noX-$BOARDNAME.spec cp $name.changes $name-noX-$BOARDNAME.changes done # Disable format_spec_file for now since it changes header # osc service localrun format_spec_file
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
.