From aea0a3d6bd57fe3c4710bee87a3c778d5bfd6da1 Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 25 Jun 2001 21:08:01 +0000 Subject: [PATCH] [project @ 2001-06-25 21:08:01 by sof] sorry - prev. commit didn't take into account that the ghc version scheme isn't just a.bb[.c], but also a.bb[.yyyymmdd]. This broke the nightly build, my bad --- ghc/compiler/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index 4429348..c7b1fc2 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.163 2001/06/25 17:28:30 sof Exp $ +# $Id: Makefile,v 1.164 2001/06/25 21:08:01 sof Exp $ TOP = .. include $(TOP)/mk/boilerplate.mk @@ -96,12 +96,15 @@ SRC_HC_OPTS += -DILX endif # -# Canonicalize the GHC version number - assume it is has the form x.yy.[z]. +# Canonicalize the GHC version number - assume it is has the form x.yy.[z] or +# x.yy[.date] where date = yyyymmdd # -# [First sed substitution gets rid of the '.' - second appends a '0' if the -# 'z' portion is missing] +# [First sed substitution gets rid of the '.', second gets rid of the date portion, +# third appends a '0' if the z portion is missing] # -CANON_HC_VERSION=$(shell echo "$(GhcVersion)" | sed -e 's/\.//g;s/^\(...\)$$/\10/g') +CANON_HC_VERSION=$(shell echo "$(GhcVersion)" | sed -e 's/\.//g;s/^\(...\)........$$/\1/g;s/^\(...\)$$/\10/g') + +# 20010625 ifeq "$(BootingFromHc)" "YES" # HC files are always from a self-booted compiler -- 1.7.10.4