Projects
home:manfred-h
kodi-noX-raspberry-pi2
pre_checkin.sh
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pre_checkin.sh of Package kodi-noX-raspberry-pi2
#!/bin/bash name=kodi # Please edit kodi.spec and kodi.changes only. *-noX.* files are generated from kodi.* files with this pre_checkin.sh script ARCH_RESTRICTIONS="%arm aarch64" # Not used for now ARCH_RESTRICTIONS="does-not-build" sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/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 ARCH_RESTRICTIONS="does-not-build" # Enable platform build for the given platform (only noX version) sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/g s/^%define kodi_platform .*/%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" # Not used for now ARCH_RESTRICTIONS="does-not-build" # Enable platform build for the given platform (only noX version) sed -e "s/%bcond_without kodi_with_X11/%bcond_with kodi_with_X11/g s/^ExclusiveArch:.*/ExclusiveArch: $ARCH_RESTRICTIONS/g s/^%define kodi_platform .*/%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
.