Added bpkg deps

This commit is contained in:
Josemar Lohn 2021-03-16 05:41:30 +00:00
parent 3ed87d6bc6
commit c360a1f8e1
No known key found for this signature in database
GPG Key ID: BE6B8FD676E471E4
4 changed files with 28 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
coverage
build
build
deps

View File

@ -1,6 +1,14 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
build:
$(info Generating the main executable)
@mkdir -p build
@awk '1{ if (NR > 1) { print x }};/### BEGIN SOURCEFILES/{exit};{x=$$0}' tildelog.sh > ./build/tildelog
@grep -hv '^[[:space:]]*declare\|^#!' ./lib/*.sh >> ./build/tildelog
@awk 'p;/### END SOURCEFILES/{p=1}' tildelog.sh >> ./build/tildelog
install:
$(info Generating the main executable)
@mkdir -p build

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "tildelog",
"version": "0.0.1",
"description": "A not-so-simple blog/gemlog/phlog system made for tilde.team",
"install": "make install",
"scripts": [ "tildelog.sh" ],
"dependencies": {
"lohn/md2gopher" : "main",
"lohn/md2gemini" : "main",
"lohn/md2html" : "main",
"lohn/httplib" : "master",
"lohn/cgibashopts" : "master"
}
}

View File

@ -8,9 +8,9 @@
#
# Heavily based on BashBlog, by Carlos Fenollosa <carlos.fenollosa@gmail.com>
md2html_awk=$(<lib/md2html.awk)
md2gemini_awk=$(<lib/md2gemini.awk)
md2gopher_awk=$(<lib/md2gopher.awk)
md2html_awk=$(<deps/bin/md2html.awk)
md2gemini_awk=$(<deps/bin/md2gemini.awk)
md2gopher_awk=$(<deps/bin/md2gopher.awk)
### BEGIN SOURCEFILES -> DO NOT REMOVE THIS LINE
source ./lib/all_posts.sh