assert: version 1.0.0

This commit is contained in:
2026-09-09 17:08:25 +03:00
parent ef3d49653d
commit 940def0092
8 changed files with 46 additions and 34 deletions
+19 -20
View File
@@ -1,54 +1,53 @@
.POSIX:
SCHEME=chibi
LIBRARY=tap
LIBRARY_FILE=retropikzel/${LIBRARY}.sld
MAINTAINER=Retropikzel
TESTFILE=retropikzel/${LIBRARY}/test.scm
DOCKER_TAG=latest
library_file=retropikzel/${LIBRARY}.sld
testfile=retropikzel/${LIBRARY}/test.scm
splitclean=awk -F ':' '{print($$2)}' | tr -d ' '
VERSION=$$(grep "VERSION:" ${LIBRARY_FILE} | ${splitclean})
LICENSE=$$(grep "SPDX-License-Identifier:" ${LIBRARY_FILE} | awk -F ":" "{print(\$$2)}" | tr -d ' ')
DESCRIPTION=$$(grep "DESCRIPTION:" ${LIBRARY_FILE} | awk -F ':' '{print($$2)}' | tr -d ' ')
ADDITIONAL_LIBRARIES=$$(grep "ADD_LIBRARIES:" ${LIBRARY_FILE} | awk -F ':' '{print($$2)}' | tr -d ' ' || echo "")
version=$$(grep "Version:" ${library_file} | ${splitclean})
license=$$(grep "SPDX-License-Identifier:" ${library_file} | awk -F ":" "{print(\$$2)}" | tr -d ' ')
description=$$(grep "Description:" ${library_file} | awk -F ':' '{print($$2)}' | tr -d ' ')
additional_libraries=$$(grep "Additional Libraries:" ${library_file} | awk -F ':' '{print($$2)}' || echo "")
PKG=retropikzel-${LIBRARY}-${VERSION}.tgz
pkg=retropikzel-${LIBRARY}-${version}.tgz
debug:
echo "${LICENSE}"
echo "${license}"
all: package
package:
snow-chibi package \
--always-yes \
--version="${VERSION}" \
--version="${version}" \
--authors=Retropikzel \
--maintainers=Retropikzel \
--license="${LICENSE}" \
--license="${license}" \
--doc-from-scribble=1 \
--test=${TESTFILE} \
--description="${DESCRIPTION}" \
${LIBRARY_FILE} ${ADDITIONAL_LIBRARIES}
--test=${testfile} \
--description="${description}" \
${library_file} ${additional_libraries}
git-index:
snow-chibi git-index ${PKG}
snow-chibi git-index ${pkg}
install:
snow-chibi install --impls=${SCHEME} --always-yes --verbose?=1 --skip-tests?=1 ${PKG}
snow-chibi install --impls=${SCHEME} --always-yes --verbose?=1 --skip-tests?=1 ${pkg}
test: package
snow-chibi --impls=${SCHEME} test-package ${PKG}
snow-chibi --impls=${SCHEME} test-package ${pkg}
test-compile-r7rs:
COMPILE_R7RS=${SCHEME} compile-r7rs -o test-program ${TESTFILE}
COMPILE_R7RS=${SCHEME} compile-r7rs -o test-program ${testfile}
./test-program
test-docker:
DOCKER_TAG=${DOCKER_TAG} \
SNOW_PACKAGES="retropikzel.tap ${PKG}" \
SNOW_PACKAGES="retropikzel.tap ${pkg}" \
COMPILE_R7RS=${SCHEME} \
test-r7rs -o test-program ${TESTFILE}
test-r7rs -o test-program ${testfile}
retropikzel/wasm/plus.wat: retropikzel/wasm/plus.c
emcc -o retropikzel/wasm/plus.js retropikzel/wasm/plus.c