Bump version. Prepare for snow-indexing
This commit is contained in:
parent
e7d086e99e
commit
a417c9aec1
|
|
@ -29,3 +29,4 @@ tmp
|
||||||
test-program
|
test-program
|
||||||
*.test
|
*.test
|
||||||
*.test1
|
*.test1
|
||||||
|
!.snow-repo.scm
|
||||||
|
|
|
||||||
52
Makefile
52
Makefile
|
|
@ -1,58 +1,44 @@
|
||||||
.SILENT:
|
.DEFAULT: all
|
||||||
|
.POSIX:
|
||||||
SCHEME=chibi
|
SCHEME=chibi
|
||||||
DOCKER_TAG=latest
|
VERSION=$$(cat retropikzel/${LIBRARY}/VERSION)
|
||||||
RNRS=r7rs
|
PKG=retropikzel-${LIBRARY}-${VERSION}.tgz
|
||||||
LIBRARY=system
|
LIBRARY=system
|
||||||
AUTHOR=Retropikzel
|
AUTHOR=Retropikzel
|
||||||
|
DOCKER_TAG=latest
|
||||||
|
|
||||||
VERSION != cat retropikzel/${LIBRARY}/VERSION
|
|
||||||
PACKAGE_ARGS != cat retropikzel/${LIBRARY}/PACKAGE_ARGS 2> /dev/null || echo ""
|
|
||||||
CSC_OPTIONS != cat retropikzel/${LIBRARY}/CSC_OPTIONS 2> /dev/null || echo ""
|
|
||||||
APT_PACKAGES != cat retropikzel/${LIBRARY}/APT_PACKAGES 2> /dev/null || echo ""
|
|
||||||
|
|
||||||
LIBRARY_FILE=retropikzel/${LIBRARY}.sld
|
PACKAGE_ARGS=$$(cat retropikzel/${LIBRARY}/PACKAGE_ARGS 2> /dev/null || echo "")
|
||||||
DESCRIPTION != head -n1 retropikzel/${LIBRARY}/README.md
|
CSC_OPTIONS=$$(cat retropikzel/${LIBRARY}/CSC_OPTIONS 2> /dev/null || echo "")
|
||||||
README=retropikzel/${LIBRARY}/README.html
|
APT_PACKAGES=$$(cat retropikzel/${LIBRARY}/APT_PACKAGES 2> /dev/null || echo "")
|
||||||
|
|
||||||
TESTFILE=retropikzel/${LIBRARY}/test.scm
|
TESTFILE=retropikzel/${LIBRARY}/test.scm
|
||||||
|
|
||||||
PKG=retropikzel-${LIBRARY}-${VERSION}.tgz
|
|
||||||
|
|
||||||
ifeq "${SCHEME}" "capyscheme"
|
|
||||||
DOCKER_TAG=head
|
|
||||||
endif
|
|
||||||
ifeq "${SCHEME}" "chibi"
|
|
||||||
DOCKER_TAG=head
|
|
||||||
endif
|
|
||||||
ifeq "${SCHEME}" "chicken"
|
|
||||||
DOCKER_TAG=head
|
|
||||||
endif
|
|
||||||
ifeq "${SCHEME}" "gauche"
|
|
||||||
DOCKER_TAG=head
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: package
|
all: package
|
||||||
|
|
||||||
package: retropikzel/${LIBRARY}/VERSION retropikzel/${LIBRARY}/README.md retropikzel/${LIBRARY}/LICENSE
|
package: retropikzel/${LIBRARY}/VERSION retropikzel/${LIBRARY}/README.md retropikzel/${LIBRARY}/LICENSE
|
||||||
echo "<pre>$$(cat retropikzel/${LIBRARY}/README.md)</pre>" > ${README}
|
|
||||||
snow-chibi package \
|
snow-chibi package \
|
||||||
--always-yes \
|
--always-yes \
|
||||||
${PACKAGE_ARGS} \
|
${PACKAGE_ARGS} \
|
||||||
--version=${VERSION} \
|
--version="${VERSION}" \
|
||||||
--authors=${AUTHOR} \
|
--authors="${AUTHOR}" \
|
||||||
--doc=${README} \
|
--doc="retropikzel/${LIBRARY}/README.md" \
|
||||||
--description="${DESCRIPTION}" \
|
--test="retropikzel/${LIBRARY}/test.scm" \
|
||||||
${LIBRARY_FILE}
|
--description="$$(head -n1 retropikzel/${LIBRARY}/README.md)" \
|
||||||
|
retropikzel/${LIBRARY}.sld
|
||||||
|
|
||||||
${PKG}: package
|
git-index: package
|
||||||
|
snow-chibi git-index ${PKG}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
snow-chibi install --impls=${SCHEME} --always-yes ${PKG}
|
snow-chibi install --impls=${SCHEME} --skip-tests?=1 ${PKG}
|
||||||
|
|
||||||
test:
|
test:
|
||||||
rm -rf test-program
|
rm -rf test-program
|
||||||
COMPILE_R7RS=${SCHEME} \
|
COMPILE_R7RS=${SCHEME} \
|
||||||
CSC_OPTIONS="${CSC_OPTIONS}" \
|
CSC_OPTIONS="${CSC_OPTIONS}" \
|
||||||
compile-r7rs -o test-program ${TESTFILE}
|
compile-r7rs -o test-program ${TESTFILE}
|
||||||
./test-program
|
./test-program
|
||||||
|
|
||||||
test-docker:
|
test-docker:
|
||||||
|
|
|
||||||
|
|
@ -495,7 +495,8 @@
|
||||||
|
|
||||||
(apply read-delimited (cons (string #\newline) args))))
|
(apply read-delimited (cons (string #\newline) args))))
|
||||||
|
|
||||||
#| TODO
|
;; IN PROGRESS
|
||||||
|
#|
|
||||||
(define read-paragraph
|
(define read-paragraph
|
||||||
(lambda args
|
(lambda args
|
||||||
|
|
||||||
|
|
@ -518,6 +519,13 @@
|
||||||
(cond ((and (eof-object? line) (null? result)) line)
|
(cond ((and (eof-object? line) (null? result)) line)
|
||||||
((and (not skipped-blank-lines?) (string=? line ""))
|
((and (not skipped-blank-lines?) (string=? line ""))
|
||||||
(looper (read-line port handle-delim)))
|
(looper (read-line port handle-delim)))
|
||||||
|
((and (not (string=? line ""))
|
||||||
|
(equal handle-delim 'trim))
|
||||||
|
(set! result line result))
|
||||||
|
((and (not (string=? line ""))
|
||||||
|
(equal handle-delim 'concat))
|
||||||
|
(set! result (string-append line "\n") result))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
|
||||||
|
|
@ -523,4 +523,14 @@
|
||||||
(test-end "read-line")
|
(test-end "read-line")
|
||||||
|
|
||||||
|
|
||||||
|
#| IN PROGRESS
|
||||||
|
(test-begin "read-paragraph")
|
||||||
|
(test-equal "foo" (read-line (open-input-string "foo\n\nbar\n\nbaz\n\n")))
|
||||||
|
(test-equal "foo" (read-line (open-input-string "foo\n\nbar\n\nbaz\n\n")))
|
||||||
|
(test-equal "foo" (read-line (open-input-string "foo\n\nbar\n\nbaz\n\n") 'trim))
|
||||||
|
(test-equal "foo\n" (read-line (open-input-string "foo\n\nbar\n\nbaz\n\n") 'concat))
|
||||||
|
(test-end "read-paragraph")
|
||||||
|
|#
|
||||||
|
|
||||||
|
|
||||||
(test-end "scsh")
|
(test-end "scsh")
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1.1.5
|
1.1.6
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
|
(import (scheme base)
|
||||||
|
(scheme write)
|
||||||
|
(scheme file)
|
||||||
|
(retropikzel system)
|
||||||
|
(retropikzel tap)
|
||||||
|
(srfi 64))
|
||||||
|
|
||||||
|
(test-runner-current (tap-runner))
|
||||||
|
|
||||||
(test-begin "foreign-c-system")
|
(test-begin "foreign-c-system")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue