mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
compatibility with alpine
This commit is contained in:
parent
dc66777a0f
commit
02a3376c5c
3 changed files with 9 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -1,10 +1,14 @@
|
||||||
-include Makefile.pwd
|
-include Makefile.cfg
|
||||||
|
|
||||||
OUTDIR=out
|
OUTDIR=out
|
||||||
PAGEDIR=pages
|
PAGEDIR=pages
|
||||||
SRCDIR=src
|
SRCDIR=src
|
||||||
TPLDIR=tpl
|
TPLDIR=tpl
|
||||||
|
|
||||||
|
ifndef THEME
|
||||||
|
THEME=theme
|
||||||
|
endif
|
||||||
|
|
||||||
_PNGS = $(shell find $(PAGEDIR) -name \*.png)
|
_PNGS = $(shell find $(PAGEDIR) -name \*.png)
|
||||||
PNGS = $(patsubst $(PAGEDIR)/%,$(OUTDIR)/%,$(_PNGS))
|
PNGS = $(patsubst $(PAGEDIR)/%,$(OUTDIR)/%,$(_PNGS))
|
||||||
|
|
||||||
|
@ -30,11 +34,11 @@ upload:
|
||||||
|
|
||||||
$(OUTDIR)/blog/index.html: $(_BLOG_PAGES) $(TPLDIR)/blog_header.md $(TPLDIR)/blog_footer.md $(TPLDIR)/default.tpl
|
$(OUTDIR)/blog/index.html: $(_BLOG_PAGES) $(TPLDIR)/blog_header.md $(TPLDIR)/blog_footer.md $(TPLDIR)/default.tpl
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
./blogindex.sh | theme -C style -t $(TPLDIR)/default.tpl -p blog/index.html -o $@
|
./blogindex.sh | $(THEME) -C style -t $(TPLDIR)/default.tpl -p blog/index.html -o $@
|
||||||
|
|
||||||
$(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl
|
$(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
theme -C style -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
|
$(THEME) -C style -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
|
||||||
|
|
||||||
$(OUTDIR)/%: static/%.h
|
$(OUTDIR)/%: static/%.h
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
|
|
|
@ -7,7 +7,7 @@ if [[ -z $LASTUPLOAD ]]; then LASTUPLOAD=0; fi
|
||||||
|
|
||||||
#echo "Last upload at $LASTUPLOAD"
|
#echo "Last upload at $LASTUPLOAD"
|
||||||
|
|
||||||
FILES=`ls $DIRECTORY/*.md -1ct --time=birth`
|
FILES=`ls $DIRECTORY/*.md -1ct`
|
||||||
|
|
||||||
cat tpl/blog_header.md
|
cat tpl/blog_header.md
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
if ! [[ -f upload.pwd ]]; then
|
if ! [[ -f upload.pwd ]]; then
|
||||||
echo "You need a file named upload.pwd with the following format:"
|
echo "You need a file named upload.pwd with the following format:"
|
||||||
|
|
Loading…
Add table
Reference in a new issue