Projects
Eulaceura:Mainline:GA
rubik
_service:obs_scm:apply-patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:apply-patch of Package rubik
#!/bin/bash # Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved. # Description: This shell script is used to apply patches for the project # Author: rubik team # Create: 2021-12-27 set -ex pkg=rubik cwd=$PWD src=$cwd/$pkg tar_file=v"$(awk -F"-" '{print $1}' < VERSION-vendor)".tar.gz mkdir ${src} && tar -zxvf "${tar_file}" -C ${src} --strip-components 1 if [ ! -d patch ]; then tar -zxvf patch.tar.gz fi series=$cwd/series.conf while IPF= read -r line do if [[ "$line" =~ ^patch* ]]; then echo patch -p1 $cwd/$line cd $src && patch -p1 < $cwd/$line fi done <"$series" cd $cwd cp -rf $src/* . cp -f VERSION-vendor VERSION rm -rf $src
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