computable-pandoc/scripts/make_dist.sh

27 lines
889 B
Bash
Raw Normal View History

2023-03-09 15:58:14 -06:00
# Makes distribution release
2023-03-08 21:05:42 -06:00
# Variables
2023-03-16 09:52:04 -06:00
NAME="lin.lua"
2023-03-09 20:13:01 -06:00
DIST=dist/$NAME
2023-03-08 21:05:42 -06:00
LICENSE="--[[
2023-03-16 09:52:04 -06:00
Computable Pandoc & Fennel Bundle:
2023-03-11 14:14:24 -06:00
A Pandoc filter for literate and natural programming
2023-03-16 09:52:04 -06:00
Computable Pandoc:
(C) 2023 perro hi@perrotuerto.blog
License: GPLv3 https://git.cuates.net/perro/computable-pandoc/src/branch/no-masters/LICENSE.txt
Source: https://git.cuates.net/perro/computable-pandoc
2023-03-08 21:05:42 -06:00
Fennel:
(C) 2016-2023 Calvin Rose and contributors
License: MIT License https://git.sr.ht/~technomancy/fennel/tree/main/item/LICENSE
Source: https://sr.ht/~technomancy/fennel or https://github.com/bakpakin/Fennel/issues
Website: https://fennel-lang.org
]]--"
2023-03-16 09:52:04 -06:00
# Bundles Fennel and computable Pandoc
2023-03-09 20:13:01 -06:00
(echo "$LICENSE") > $DIST
head -n -1 opt/fennel.lua >> $DIST
2023-03-11 14:14:24 -06:00
echo "local fnl = mod" >> $DIST
head -n -1 src/natural.lua >> $DIST
head -n -1 src/literate.lua >> $DIST
cat src/pandoc.lua >> $DIST