Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
raspberrypi-firmware-dt.9562
get-from-git.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File get-from-git.sh of Package raspberrypi-firmware-dt.9562
#!/bin/bash LINUX_BRANCH=rpi-4.14.y # this is a huge hunk of stuff, so reuse the local repo if possible if [ -d linux/.git ]; then cd linux git remote update git checkout origin/$LINUX_BRANCH cd .. else set -e git clone -b $LINUX_BRANCH --depth 1 https://github.com/raspberrypi/linux.git set +e fi TOPDIR=$(pwd) # Copy device tree files SOURCES="COPYING arch/arm/boot/dts arch/arm64/boot/dts/broadcom/*bcm27* scripts/dtc/include-prefixes/ include" cd linux LINE=$(git log --format=format:"%h %ai" -- ${SOURCES}|head -n 1) set -- $LINE REV=$1 DATE=$2 VER=${DATE//-/.} set -e git archive --prefix=raspberrypi-firmware-dt-$VER/ -o $TOPDIR/raspberrypi-firmware-dt-${VER}.tar HEAD -- ${SOURCES} cd .. osc rm -f raspberrypi-firmware-dt-*.tar.xz || true xz --force raspberrypi-firmware-dt-${VER}.tar osc add raspberrypi-firmware-dt-${VER}.tar.xz sed -i "s/^Version:.*/Version: $VER/" raspberrypi-firmware-dt.spec osc vc raspberrypi-firmware-dt -m "Update to $REV ($DATE)" sh pre_checkin.sh
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