Added a last-revision file and modified scheme/Makefile.am

accordingly.
This commit is contained in:
Abdulaziz Ghuloum 2007-11-21 00:59:05 -05:00
parent 6e170030d8
commit 0644542565
4 changed files with 14 additions and 24 deletions

View File

@ -4,23 +4,17 @@ EXTRA_DIST=ikarus.boot.orig ikarus.enumerations.ss ikarus.exceptions.ss ikarus.a
all: $(nodist_pkglib_DATA)
revnofile = "../.bzr/branch/last-revision"
revnodeps = $(shell ls $(revnofile))
revno = "$(shell sed 's/ .*//' $(revnofile))"
revno = "$(shell sed 's/ .*//' ../.bzr/branch/last-revision)"
last-revision: $(shell ls ../.bzr/branch/last-revision)
echo $(revno) >$@
ikarus.config.ss: Makefile $(revnodeps)
ikarus.config.ss: Makefile last-revision
echo '(define ikarus-version "$(PACKAGE_VERSION)")' >$@
echo '(define ikarus-revision $(revno))' >>$@
echo '(define ikarus-revision "$(shell cat last-revision)")' >>$@
echo '(define ikarus-lib-dir "$(pkglibdir)")' >>$@
CLEANFILES=$(nodist_pkglib_DATA) ikarus.config.ss
CLEANFILES=$(nodist_pkglib_DATA) ikarus.config.ss last-revision
ikarus.boot: $(EXTRA_DIST) ikarus.config.ss
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.ss
# pkglibdir
# if [-f "../.bzr/branch/last-revision"] \
# echo '(define ikarus-reversion "$(PACKAGE_VERSION)")' >>$@ \
# fi

View File

@ -183,10 +183,8 @@ EXTRA_DIST = ikarus.boot.orig ikarus.enumerations.ss \
ikarus/code-objects.ss ikarus/compiler.ss \
ikarus/intel-assembler.ss ikarus/fasl/write.ss \
unicode/unicode-char-cases.ss unicode/unicode-charinfo.ss
revnofile = "../.bzr/branch/last-revision"
revnodeps = $(shell ls $(revnofile))
revno = "$(shell sed 's/ .*//' $(revnofile))"
CLEANFILES = $(nodist_pkglib_DATA) ikarus.config.ss
revno = "$(shell sed 's/ .*//' ../.bzr/branch/last-revision)"
CLEANFILES = $(nodist_pkglib_DATA) ikarus.config.ss last-revision
all: all-am
.SUFFIXES:
@ -371,19 +369,16 @@ uninstall-am: uninstall-nodist_pkglibDATA
all: $(nodist_pkglib_DATA)
last-revision: $(shell ls ../.bzr/branch/last-revision)
echo $(revno) >$@
ikarus.config.ss: Makefile $(revnodeps)
ikarus.config.ss: Makefile last-revision
echo '(define ikarus-version "$(PACKAGE_VERSION)")' >$@
echo '(define ikarus-revision $(revno))' >>$@
echo '(define ikarus-revision "$(shell cat last-revision)")' >>$@
echo '(define ikarus-lib-dir "$(pkglibdir)")' >>$@
ikarus.boot: $(EXTRA_DIST) ikarus.config.ss
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.ss
# pkglibdir
# if [-f "../.bzr/branch/last-revision"] \
# echo '(define ikarus-reversion "$(PACKAGE_VERSION)")' >>$@ \
# fi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -29,7 +29,7 @@
ikarus-version
(format "~a+ (revision ~a, build ~a)"
ikarus-version
ikarus-revision
(+ 1 (string->number ikarus-revision))
(let-syntax ([ds (lambda (x) (date-string))])
ds))))
(display "Copyright (c) 2006-2007 Abdulaziz Ghuloum\n\n"))

1
scheme/last-revision Normal file
View File

@ -0,0 +1 @@
1096