Add packaging script
This commit is contained in:
parent
aacc580f7a
commit
003a1019c7
|
@ -0,0 +1 @@
|
|||
distfiles
|
|
@ -0,0 +1,51 @@
|
|||
#!/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.1 \
|
||||
"Alist/hash-table destructuring case macros"
|
||||
|
||||
package shell-quote 0.1 \
|
||||
"Scheme DSL to build shell command lines" \
|
||||
"shell-quote-test.scm"
|
||||
|
||||
package dockerfile 0.1 \
|
||||
"Scheme DSL to build Dockerfiles" \
|
||||
"dockerfile-test.scm"
|
||||
|
||||
package string-inflection 0.1.1 \
|
||||
"lisp-case under_score CapsUpper capsLower" \
|
||||
"string-inflection-test.scm"
|
||||
|
||||
package trivial-tar-writer 0.1 \
|
||||
"Simplest way to output uncompressed .tar file"
|
Loading…
Reference in New Issue