serenity/Ports/nethack/patches/0003-Use-host-tools-where-needed.patch
2022-05-19 20:17:10 +04:30

169 lines
4.9 KiB
Diff

From 3d1ff1d1a12a4111b7ef29e8c6bbae05095c1bc1 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Sun, 11 Apr 2021 23:15:42 +0200
Subject: [PATCH 3/5] Use host tools where needed
---
sys/unix/Makefile.dat | 68 +++++++++++++++++++++----------------------
sys/unix/Makefile.src | 2 +-
sys/unix/Makefile.top | 2 +-
sys/unix/Makefile.utl | 6 ++--
4 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/sys/unix/Makefile.dat b/sys/unix/Makefile.dat
index 00f6043..68344d7 100644
--- a/sys/unix/Makefile.dat
+++ b/sys/unix/Makefile.dat
@@ -101,69 +101,69 @@ GEM_RSC.RSC:
data: data.base ../util/makedefs
- ../util/makedefs -d
+ ../util/makedefs.host -d
rumors: rumors.tru rumors.fal ../util/makedefs
- ../util/makedefs -r
+ ../util/makedefs.host -r
quest.dat: quest.txt ../util/makedefs
- ../util/makedefs -q
+ ../util/makedefs.host -q
oracles: oracles.txt ../util/makedefs
- ../util/makedefs -h
+ ../util/makedefs.host -h
engrave: engrave.txt ../util/makedefs
- ../util/makedefs -s
+ ../util/makedefs.host -s
epitaph: epitaph.txt ../util/makedefs
- ../util/makedefs -s
+ ../util/makedefs.host -s
bogusmon: bogusmon.txt ../util/makedefs
- ../util/makedefs -s
+ ../util/makedefs.host -s
# note: 'options' should have already been made when include/date.h was created
options: ../util/makedefs
- ../util/makedefs -v
+ ../util/makedefs.host -v
spec_levs: ../util/lev_comp \
bigroom.des castle.des endgame.des gehennom.des knox.des medusa.des \
mines.des oracle.des sokoban.des tower.des yendor.des
- ../util/lev_comp bigroom.des
- ../util/lev_comp castle.des
- ../util/lev_comp endgame.des
- ../util/lev_comp gehennom.des
- ../util/lev_comp knox.des
- ../util/lev_comp medusa.des
- ../util/lev_comp mines.des
- ../util/lev_comp oracle.des
- ../util/lev_comp sokoban.des
- ../util/lev_comp tower.des
- ../util/lev_comp yendor.des
+ ../util/lev_comp.host bigroom.des
+ ../util/lev_comp.host castle.des
+ ../util/lev_comp.host endgame.des
+ ../util/lev_comp.host gehennom.des
+ ../util/lev_comp.host knox.des
+ ../util/lev_comp.host medusa.des
+ ../util/lev_comp.host mines.des
+ ../util/lev_comp.host oracle.des
+ ../util/lev_comp.host sokoban.des
+ ../util/lev_comp.host tower.des
+ ../util/lev_comp.host yendor.des
touch spec_levs
quest_levs: ../util/lev_comp \
Arch.des Barb.des Caveman.des Healer.des Knight.des Monk.des \
Priest.des Ranger.des Rogue.des Samurai.des Tourist.des Valkyrie.des \
Wizard.des
- ../util/lev_comp Arch.des
- ../util/lev_comp Barb.des
- ../util/lev_comp Caveman.des
- ../util/lev_comp Healer.des
- ../util/lev_comp Knight.des
- ../util/lev_comp Monk.des
- ../util/lev_comp Priest.des
- ../util/lev_comp Ranger.des
- ../util/lev_comp Rogue.des
- ../util/lev_comp Samurai.des
- ../util/lev_comp Tourist.des
- ../util/lev_comp Valkyrie.des
- ../util/lev_comp Wizard.des
+ ../util/lev_comp.host Arch.des
+ ../util/lev_comp.host Barb.des
+ ../util/lev_comp.host Caveman.des
+ ../util/lev_comp.host Healer.des
+ ../util/lev_comp.host Knight.des
+ ../util/lev_comp.host Monk.des
+ ../util/lev_comp.host Priest.des
+ ../util/lev_comp.host Ranger.des
+ ../util/lev_comp.host Rogue.des
+ ../util/lev_comp.host Samurai.des
+ ../util/lev_comp.host Tourist.des
+ ../util/lev_comp.host Valkyrie.des
+ ../util/lev_comp.host Wizard.des
touch quest_levs
dungeon: dungeon.def ../util/makedefs ../util/dgn_comp
- ../util/makedefs -e
- ../util/dgn_comp dungeon.pdf
+ ../util/makedefs.host -e
+ ../util/dgn_comp.host dungeon.pdf
# gitinfo.txt is optionally made by src/Makefile when creating date.h
clean:
diff --git a/sys/unix/Makefile.src b/sys/unix/Makefile.src
index 47ab9e0..5d94487 100644
--- a/sys/unix/Makefile.src
+++ b/sys/unix/Makefile.src
@@ -670,7 +670,7 @@ tile.c: ../win/share/tilemap.c $(HACK_H)
# up to date before being executed
../include/date.h: $(VERSOURCES) $(HACK_H)
-$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v'
- ../util/makedefs -v
+ ../util/makedefs.host -v
lint:
diff --git a/sys/unix/Makefile.top b/sys/unix/Makefile.top
index ad7607c..f0ee25d 100644
--- a/sys/unix/Makefile.top
+++ b/sys/unix/Makefile.top
@@ -188,7 +188,7 @@ check-dlb: options
dlb:
( cd util ; $(MAKE) dlb )
- ( cd dat ; LC_ALL=C ; ../util/dlb cf nhdat $(DATDLB) )
+ ( cd dat ; LC_ALL=C ; ../util/dlb.host cf nhdat $(DATDLB) )
# recover can be used when INSURANCE is defined in include/config.h
# and the checkpoint option is true
diff --git a/sys/unix/Makefile.utl b/sys/unix/Makefile.utl
index 78e9d72..1a7efca 100644
--- a/sys/unix/Makefile.utl
+++ b/sys/unix/Makefile.utl
@@ -239,11 +239,11 @@ mdgreph: mdgrep.pl
perl mdgrep.pl
../include/onames.h: makedefs
- ./makedefs -o
+ ./makedefs.host -o
../include/pm.h: makedefs
- ./makedefs -p
+ ./makedefs.host -p
../include/vis_tab.h: makedefs
- ./makedefs -z
+ ./makedefs.host -z
# makedefs -z makes both vis_tab.h and vis_tab.c, but writes the .h first
../src/vis_tab.c: ../include/vis_tab.h
--
2.36.1