-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathcopr_script.sh
More file actions
executable file
·50 lines (42 loc) · 1.49 KB
/
copr_script.sh
File metadata and controls
executable file
·50 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/bash -x
# Copyright 2025 The Trivalent Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
set -oue pipefail
cd Trivalent
shopt -s nullglob
# copy Fedora patches to the build dir
pushd fedora_patches/
patches=(*.patch)
for ((i=0; i<${#patches[@]}; i++)); do
cp "${patches[i]}" "../build/fedora-$((i+1000)).patch"
done
popd
# copy Vanadium patches to the build dir
pushd vanadium_patches/
patches=(*.patch)
for ((i=0; i<${#patches[@]}; i++)); do
cp "${patches[i]}" "../build/vanadium-$((i+2000)).patch"
done
popd
# copy Trivalent patches to the build dir
pushd patches/
cp ../translation_patches/register-trivalent-strings.patch ./
cp ../translation_patches/translations/*.patch ./
patches=(*.patch)
for ((i=0; i<${#patches[@]}; i++)); do
cp "${patches[i]}" "../build/trivalent-$((i+3000)).patch"
done
popd
# Move all the source files into the parent directory for the COPR build system to find them
cp /usr/src/chromium/chromium-*-clean.tar.xz ../
cp /usr/src/chromium/chromium-version.txt ../
mv ./build/* ../