Skip to content

Commit

Permalink
games-action/descent2-data: Fix patching the CD readme file
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/933992
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Jun 14, 2024
1 parent a144f47 commit dc3715e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions games-action/descent2-data/descent2-data-1.2-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ src_prepare() {
# Patch to 1.2 if necessary
if use cdinstall; then
if [[ $(md5sum data/descent2.ham) != 7f30c3d7d4087b8584b49012a53ce022* ]]; then
local i
for i in *.xdelta; do
xdelta3 -d -s data/"${i%.*}" "${i}" data/"${i%.*}".new || die
mv data/"${i%.*}"{.new,} || die
local x dir
for x in *.xdelta; do
case "${x}" in
*.txt.xdelta) dir=doc ;;
*) dir=data ;;
esac
xdelta3 -d -s "${dir}/${x%.*}" "${x}" "${dir}/${x%.*}.new" || die
mv "${dir}/${x%.*}"{.new,} || die
done
fi
fi
Expand Down

0 comments on commit dc3715e

Please sign in to comment.