From ea24b44b54ce69c459d1954c99d597cf18b66ab2 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Fri, 13 May 2022 18:07:23 +0000 Subject: [PATCH] MD5 to SHA1 --- Makefile | 8 ++++++-- README.md | 2 +- rom.md5 | 1 - rom.sha1 | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 rom.md5 create mode 100644 rom.sha1 diff --git a/Makefile b/Makefile index f1a100ed..6eb05b58 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 diff --git a/README.md b/README.md index 50058bd5..9ef2c38c 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/rom.md5 b/rom.md5 deleted file mode 100644 index ec8f61d9..00000000 --- a/rom.md5 +++ /dev/null @@ -1 +0,0 @@ -fbe20570c2e52c937a9395024069ba3c pokepinball.gbc diff --git a/rom.sha1 b/rom.sha1 new file mode 100644 index 00000000..1746859b --- /dev/null +++ b/rom.sha1 @@ -0,0 +1 @@ +9402014d14969432142abfde728c6f1a10ee4dac *pokepinball.gbc