bsd-games: s/sed/vsed/
This commit is contained in:
parent
02d04795e5
commit
d44beade08
1 changed files with 13 additions and 14 deletions
|
@ -39,21 +39,20 @@ patch_args="-Np1"
|
|||
nocross=yes
|
||||
|
||||
post_extract() {
|
||||
sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
|
||||
sed -i "s/tenths/tenth/g" tests/number.-0.1
|
||||
sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
|
||||
sed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in
|
||||
sed -i "s/it\'s initial/its initial/g" backgammon/teachgammon/ttext1.c
|
||||
sed -i "s/two player\'s/two players/g" backgammon/teachgammon/ttext2.c
|
||||
sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6
|
||||
sed -i "s/game were the/game where the/g" gomoku/gomoku.6
|
||||
sed -i 's|/usr/games|/usr/bin|g' wargames/wargames
|
||||
vsed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
|
||||
vsed -i "s/tenths/tenth/g" tests/number.-0.1
|
||||
vsed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
|
||||
vsed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in
|
||||
vsed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6
|
||||
vsed -i "s/game were the/game where the/g" gomoku/gomoku.6
|
||||
vsed -i 's|/usr/games|/usr/bin|g' wargames/wargames
|
||||
|
||||
sed -i '1i#include <sys/types.h>' banner/banner.c
|
||||
sed -i 's/getdate/get_date/g' hack/*.[ch]
|
||||
sed -i '1i#include <fcntl.h>' wump/wump.c
|
||||
sed -i 's/-DOTTO//' hunt/Makeconfig
|
||||
vsed -i '1i#include <sys/types.h>' banner/banner.c
|
||||
vsed -i 's/getdate/get_date/g' hack/extern.h hack/hack.{end,unix}.c
|
||||
vsed -i '1i#include <fcntl.h>' wump/wump.c
|
||||
vsed -i 's/-DOTTO//' hunt/Makeconfig
|
||||
}
|
||||
|
||||
pre_configure() {
|
||||
cp ${FILESDIR}/config.params .
|
||||
echo "bsd_games_cfg_cc='$CC'" >>config.params
|
||||
|
@ -61,6 +60,7 @@ pre_configure() {
|
|||
echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
|
||||
echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
|
||||
}
|
||||
|
||||
do_install() {
|
||||
echo >install-score
|
||||
sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
|
||||
|
@ -74,4 +74,3 @@ do_install() {
|
|||
rm "${DESTDIR}/usr/share/doc/trek.me"
|
||||
vlicense COPYING
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue