52 lines
1.1 KiB
Bash
Executable File
52 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
AUTHOR_NAME="Lassi Kortela"
|
|
AUTHOR_EMAIL="lassi""@""lassi.io"
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
mkdir -p distfiles
|
|
cd distfiles
|
|
echo "Entering directory '$PWD'"
|
|
|
|
package() {
|
|
libstem="$1"
|
|
version="$2"
|
|
description="$3"
|
|
testfile="${4:-}"
|
|
|
|
testarg=""
|
|
if [ -n "$testfile" ]; then
|
|
testarg="--test=../lassik/$testfile"
|
|
fi
|
|
snow-chibi \
|
|
--noimage \
|
|
package \
|
|
--maintainers="$AUTHOR_NAME <$AUTHOR_EMAIL>" \
|
|
--authors="$AUTHOR_NAME" \
|
|
--license="ISC" \
|
|
--version="$version" \
|
|
--description="$description" \
|
|
$testarg \
|
|
"../lassik/$libstem.sld"
|
|
}
|
|
|
|
set -x
|
|
|
|
package unpack-assoc 0.2 \
|
|
"Alist/hash-table destructuring case macros"
|
|
|
|
package shell-quote 0.2 \
|
|
"Scheme DSL to build shell command lines" \
|
|
"shell-quote-test.scm"
|
|
|
|
package dockerfile 0.2 \
|
|
"Scheme DSL to build Dockerfiles" \
|
|
"dockerfile-test.scm"
|
|
|
|
package string-inflection 0.2 \
|
|
"lisp-case under_score CapsUpper capsLower" \
|
|
"string-inflection-test.scm"
|
|
|
|
package trivial-tar-writer 0.2 \
|
|
"Simplest way to output uncompressed .tar file"
|