Added a last-revision file and modified scheme/Makefile.am
accordingly.
This commit is contained in:
parent
6e170030d8
commit
0644542565
|
@ -4,23 +4,17 @@ EXTRA_DIST=ikarus.boot.orig ikarus.enumerations.ss ikarus.exceptions.ss ikarus.a
|
||||||
|
|
||||||
all: $(nodist_pkglib_DATA)
|
all: $(nodist_pkglib_DATA)
|
||||||
|
|
||||||
revnofile = "../.bzr/branch/last-revision"
|
revno = "$(shell sed 's/ .*//' ../.bzr/branch/last-revision)"
|
||||||
revnodeps = $(shell ls $(revnofile))
|
last-revision: $(shell ls ../.bzr/branch/last-revision)
|
||||||
revno = "$(shell sed 's/ .*//' $(revnofile))"
|
echo $(revno) >$@
|
||||||
|
|
||||||
|
ikarus.config.ss: Makefile last-revision
|
||||||
|
|
||||||
ikarus.config.ss: Makefile $(revnodeps)
|
|
||||||
echo '(define ikarus-version "$(PACKAGE_VERSION)")' >$@
|
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)")' >>$@
|
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
|
ikarus.boot: $(EXTRA_DIST) ikarus.config.ss
|
||||||
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.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
|
|
||||||
|
|
|
@ -183,10 +183,8 @@ EXTRA_DIST = ikarus.boot.orig ikarus.enumerations.ss \
|
||||||
ikarus/code-objects.ss ikarus/compiler.ss \
|
ikarus/code-objects.ss ikarus/compiler.ss \
|
||||||
ikarus/intel-assembler.ss ikarus/fasl/write.ss \
|
ikarus/intel-assembler.ss ikarus/fasl/write.ss \
|
||||||
unicode/unicode-char-cases.ss unicode/unicode-charinfo.ss
|
unicode/unicode-char-cases.ss unicode/unicode-charinfo.ss
|
||||||
revnofile = "../.bzr/branch/last-revision"
|
revno = "$(shell sed 's/ .*//' ../.bzr/branch/last-revision)"
|
||||||
revnodeps = $(shell ls $(revnofile))
|
CLEANFILES = $(nodist_pkglib_DATA) ikarus.config.ss last-revision
|
||||||
revno = "$(shell sed 's/ .*//' $(revnofile))"
|
|
||||||
CLEANFILES = $(nodist_pkglib_DATA) ikarus.config.ss
|
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
@ -371,19 +369,16 @@ uninstall-am: uninstall-nodist_pkglibDATA
|
||||||
|
|
||||||
|
|
||||||
all: $(nodist_pkglib_DATA)
|
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-version "$(PACKAGE_VERSION)")' >$@
|
||||||
echo '(define ikarus-revision $(revno))' >>$@
|
echo '(define ikarus-revision "$(shell cat last-revision)")' >>$@
|
||||||
echo '(define ikarus-lib-dir "$(pkglibdir)")' >>$@
|
echo '(define ikarus-lib-dir "$(pkglibdir)")' >>$@
|
||||||
|
|
||||||
ikarus.boot: $(EXTRA_DIST) ikarus.config.ss
|
ikarus.boot: $(EXTRA_DIST) ikarus.config.ss
|
||||||
../src/ikarus -b ./ikarus.boot.orig --r6rs-script makefile.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.
|
# 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.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
.NOEXPORT:
|
.NOEXPORT:
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
ikarus-version
|
ikarus-version
|
||||||
(format "~a+ (revision ~a, build ~a)"
|
(format "~a+ (revision ~a, build ~a)"
|
||||||
ikarus-version
|
ikarus-version
|
||||||
ikarus-revision
|
(+ 1 (string->number ikarus-revision))
|
||||||
(let-syntax ([ds (lambda (x) (date-string))])
|
(let-syntax ([ds (lambda (x) (date-string))])
|
||||||
ds))))
|
ds))))
|
||||||
(display "Copyright (c) 2006-2007 Abdulaziz Ghuloum\n\n"))
|
(display "Copyright (c) 2006-2007 Abdulaziz Ghuloum\n\n"))
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1096
|
Loading…
Reference in New Issue