aboutsummaryrefslogtreecommitdiff
path: root/v2/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'v2/src/bin')
-rwxr-xr-xv2/src/bin/makemake13
1 files changed, 11 insertions, 2 deletions
diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake
index 06a7d33..17fa244 100755
--- a/v2/src/bin/makemake
+++ b/v2/src/bin/makemake
@@ -66,16 +66,23 @@ varlist() {
html_deps() {
"$@" | sed 's/^\(.*\)\.md$/\1.conf \1.content: \1.md/'
- "$@" | sed 's/^\(.*\)\.md$/\1.html: \1.conf \1.content/'
+ "$@" | sed 's/^\(.*\)\.md$/\1.snippets \1.html: \1.conf \1.content/'
printf '\n'
}
content_mds() {
- find src/content/"$1"/ -type f -name '*.md'
+ {
+ if [ "$r" = 'pages' ]; then
+ echo src/content/*.md
+ else
+ echo src/content/"$r"/*.md
+ fi
+ } | tr ' ' '\n'
}
RESOURCES='
+pages
pastebins
tils
'
@@ -87,6 +94,7 @@ EXTENSIONS='
.prehtml
.posthtml
.html
+.snippets
'
for r in $RESOURCES; do
@@ -111,6 +119,7 @@ for r in $RESOURCES; do
printf '\n'
done
+
all_resources() {
echo "$RESOURCES" | tr ' ' '\n' | grep .
}