Skip to content

Commit

Permalink
Merge pull request #38 from vulcandth/md5-to-sha1
Browse files Browse the repository at this point in the history
MD5 to SHA1
  • Loading branch information
huderlem committed May 14, 2022
2 parents 57a3e0f + ea24b44 commit 862fa0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
ROM := pokepinball.gbc
OBJS := main.o wram.o sram.o

MD5 := md5sum -c
ifeq (,$(shell which sha1sum))
SHA1 := shasum
else
SHA1 := sha1sum
endif

all: $(ROM) compare

Expand All @@ -26,7 +30,7 @@ $(ROM): $(OBJS) contents/contents.link

# For contributors to make sure a change didn't affect the contents of the rom.
compare: $(ROM)
@$(MD5) rom.md5
@$(SHA1) -c rom.sha1

tools:
$(MAKE) -C tools
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a disassembly of Pokémon Pinball (Game Boy Color).

It builds the following rom:

* Pokemon Pinball (U) [C][!].gb `md5: fbe20570c2e52c937a9395024069ba3c`
* Pokemon Pinball (U) [C][!].gb `sha1: 9402014d14969432142abfde728c6f1a10ee4dac`

To set up the repository, see [**INSTALL.md**](INSTALL.md).

Expand Down
1 change: 0 additions & 1 deletion rom.md5

This file was deleted.

1 change: 1 addition & 0 deletions rom.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9402014d14969432142abfde728c6f1a10ee4dac *pokepinball.gbc

0 comments on commit 862fa0b

Please sign in to comment.