forked from QubesOS/qubes-antievilmaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
- Loading branch information
1 parent
f52c598
commit fbaf6c0
Showing
2 changed files
with
109 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# prevent errors due to inconsistent ownership | ||
git config --global --add safe.directory "$PWD" | ||
git config --global --add safe.directory '/builder/qubes-src/antievilmaid' | ||
|
||
echo "XXXX fetch component's sources" | ||
su -c "make -C /builder 'COMPONENTS=antievilmaid' get-sources" - builder | ||
|
||
echo "XXXX create a set of patches on top of component's base" | ||
patches=( $(git format-patch --start-number 1 62819a6fdf58d3d3c47aff5096dea9fb88ce1d53) ) | ||
|
||
echo "XXXX integrate patches into sources" | ||
git -C "/builder/qubes-src/antievilmaid/" config user.email "test@example.com" | ||
git -C "/builder/qubes-src/antievilmaid/" config user.name "Test User" | ||
git -C "/builder/qubes-src/antievilmaid/" config gc.auto 0 | ||
git -C "/builder/qubes-src/antievilmaid/" am $PWD/${patches[@]} | ||
|
||
echo "XXXX build the component" | ||
su -c "make -C /builder 'COMPONENTS=antievilmaid' 'antievilmaid'" - builder | ||
|
||
echo "XXXX move RPMs out of the container" | ||
rpms=( $(find "/builder/qubes-src/antievilmaid/pkgs" -name '*.rpm') ) | ||
cp --verbose "${rpms[@]}" . |