Browse Source

fixes for make diff

patch
curt mayer 6 years ago
parent
commit
41ed037935
  1. 12
      Binary/Apps/Tunes/Makefile
  2. 2
      Source/CPM3/Makefile
  3. 10
      Source/HBIOS/Makefile
  4. 2
      Source/Images/Makefile
  5. 9
      Source/ZPM3/Makefile
  6. 7
      Tools/Makefile.inc
  7. 8
      Tools/unix/casefn.sh

12
Binary/Apps/Tunes/Makefile

@ -1,6 +1,6 @@
TOOLS = ../../../Tools
include $(TOOLS)/Makefile.inc
clean::
rm -f *.pt? *.mym
TOOLS = ../../../Tools
include $(TOOLS)/Makefile.inc
clobber::
-rm -f *.pt3 *.mym

2
Source/CPM3/Makefile

@ -11,7 +11,7 @@ TOOLS = ../../Tools
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
BIOSOBJS = bioskrnl.rel scb.rel boot.rel chario.rel BIOSOBJS = bioskrnl.rel scb.rel boot.rel chario.rel
BIOSOBJS += move.rel drvtbl.rel diskio.rel
BIOSOBJS += move.rel drvtbl.rel diskio.rel util.rel
COMMA := , COMMA := ,
NULL := NULL :=
SPACE := $(NULL) $(NULL) SPACE := $(NULL) $(NULL)

10
Source/HBIOS/Makefile

@ -4,7 +4,17 @@ DEST = ../../Binary/Apps
TOOLS =../../Tools TOOLS =../../Tools
OTHERS = *.bin *.z80 cpm.sys zsys.sys Build.inc OTHERS = *.bin *.z80 cpm.sys zsys.sys Build.inc
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
DIFFPATH = $(DIFFTO)/Binary
ZETA2_std.rom: ZETA2_std.rom:
bash Build.sh ZETA2 std 512 bash Build.sh ZETA2 std 512
hbios_rom.bin: hbios.asm
$(TASM) -dROMBOOT hbios.asm hbios_rom.bin
hbios_app.bin: hbios.asm
$(TASM) -dAPPBOOT hbios.asm hbios_app.bin
hbios_img.bin: hbios.asm
$(TASM) -dIMGBOOT hbios.asm hbios_img.bin

2
Source/Images/Makefile

@ -16,6 +16,8 @@ DEST=../../Binary
TOOLS = ../../Tools TOOLS = ../../Tools
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
DIFFPATH = $(DIFFTO)/Binary
hd_combo.img: $(HDIMGS) hd_combo.img: $(HDIMGS)
cat $(HDIMGS) > $@ cat $(HDIMGS) > $@

9
Source/ZPM3/Makefile

@ -1,6 +1,9 @@
OBJECTS = zpmldr.com zpmldr.sys cpm3.sys zinstal.zpm startzpm.com zccp.com \
OBJECTS = zpmldr.com zpmldr.sys cpm3.sys startzpm.com zccp.com \
setz3.com clrhist.com autotog.com setz3.com clrhist.com autotog.com
OTHERS = biosldr.rel gencpm.com gencpm.dat bnkbios3.spr
ifndef REBUILD_ZPM_TOOLS
NODELETE = setz3.com clrhist.com autotog.com
endif
OTHERS = zpmldr.bin loader.bin biosldrd.rel biosldrc.rel gencpm.com gencpm.dat bnkbios3.spr
TOOLS =../../Tools TOOLS =../../Tools
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
@ -43,8 +46,10 @@ zinstal.zpm: ../ZCCP/zinstal.zpm
startzpm.com: ../ZCCP/startzpm.com startzpm.com: ../ZCCP/startzpm.com
cp $< $@ cp $< $@
ifdef REBUILD_ZPM_TOOLS
setz3.com: setz3.z80 setz3.com: setz3.z80
clrhist.com: clrhist.z80 clrhist.com: clrhist.z80
autotog.com: autotog.z80 autotog.com: autotog.z80
endif

7
Tools/Makefile.inc

@ -24,7 +24,7 @@ RELPATH := $(subst $(TREEROOT),,$(HERE))
# #
# where's a copy of this tree for windows so we can diff binaries # where's a copy of this tree for windows so we can diff binaries
# #
DIFFTO := /Volumes/Github/RomWBW
DIFFTO := $(shell cd $(TREEROOT)/../RomWBW.windows; pwd)
DIFFPATH := $(DIFFTO)/$(RELPATH) DIFFPATH := $(DIFFTO)/$(RELPATH)
# #
@ -144,9 +144,12 @@ diff::
sf=$$($(CASEFN) $$i) ; \ sf=$$($(CASEFN) $$i) ; \
df=$$($(CASEFN) $(DIFFPATH)/$$i) ; \ df=$$($(CASEFN) $(DIFFPATH)/$$i) ; \
if [ -f $$df -a -f $$sf ] ; then \ if [ -f $$df -a -f $$sf ] ; then \
if [ "$(VERBOSEDIFF)" ] ; then \
echo compare $$sf and $$df ; \
fi ; \
if ! cmp -s $$sf $$df ; then \ if ! cmp -s $$sf $$df ; then \
echo $$sf and $$df differ ; \ echo $$sf and $$df differ ; \
if [ "$(VERBOSEDIFF)" ] ; then \
if [ "$(VERBOSEDIFF)" = "2" ] ; then \
cmp -bl $$sf $$df ; \ cmp -bl $$sf $$df ; \
hexdump -Cv $$sf > $$sf.dump ; \ hexdump -Cv $$sf > $$sf.dump ; \
hexdump -Cv $$df > $$(basename $$df).dump.diff ; \ hexdump -Cv $$df > $$(basename $$df).dump.diff ; \

8
Tools/unix/casefn.sh

@ -12,7 +12,7 @@ function cleanup {
rm -f $all $search $in rm -f $all $search $in
} }
trap cleanup EXIT
#trap cleanup EXIT
cleanup cleanup
if [ $# -lt 1 ] ; then if [ $# -lt 1 ] ; then
@ -53,10 +53,14 @@ for dn in ${dirs[@]} ; do
cd $here cd $here
cd $dn cd $dn
for i in * ; do for i in * ; do
# skip any file names containing a space
if echo "$i" | grep -sq " " ; then
continue
fi
echo $dn/$(echo "$i" | tr '[A-Z]' '[a-z]')",$dn/$i" >> $in echo $dn/$(echo "$i" | tr '[A-Z]' '[a-z]')",$dn/$i" >> $in
done done
done done
sort $in > $all
sort -t, -k 1,1 $in > $all
join -t, -o 1.2 $all $search | sort -u > $in join -t, -o 1.2 $all $search | sort -u > $in
if [ $(wc -l < $in) -gt 0 ] ; then if [ $(wc -l < $in) -gt 0 ] ; then

Loading…
Cancel
Save