Check-in [0e2d3be820]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:variablize markdown
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0e2d3be8206959cfb368b6f76f98a7f820cd21c5
User & Date: brandon@invergo.net 2013-02-19 17:01:19
Context
2013-02-19
17:05
change atom generator check-in: 3e2ea030d3 user: brandon@invergo.net tags: trunk
17:01
variablize markdown check-in: 0e2d3be820 user: brandon@invergo.net tags: trunk
16:59
initial commit check-in: ce85597cc6 user: brandon@invergo.net tags: trunk
Changes

Changes to Makefile.

     2      2   # Get SSH user/doc root from auth.mk
     3      3   include auth.mk
     4      4   RSYNC = rsync
     5      5   SSH_PORT = 22
     6      6   SSH_USER ?= 
     7      7   DOC_ROOT ?= 
     8      8   RSYNC_DELETE = #--delete
            9  +
           10  +MARKDOWN = markdown
     9     11   
    10     12   # Copies files from src/ to dst/. Any .html files are
    11     13   # interpreted by GNU m4 and wrapped in a the GNU m4
    12     14   # template. Common m4 macros may be stored in a macros
    13     15   # file.
    14     16   
    15     17   MACROS    := macros.m4
................................................................................
    72     74   	@echo "\"}\"})" >> $(POSTS)/index.html.m4
    73     75   
    74     76   atom:
    75     77   	@echo "==> building feed"
    76     78   	@m4 -P $(MACROS) $(ATOM_T) > $(SRC)/atom.xml
    77     79   	@for f in $(sorted_posts); do \
    78     80   		link="`basename $$f .md.m4`.html";\
    79         -		markdown $$f | m4 -D "__URL"=$$link -P $(MACROS) - $(ATOM_E_T) \
           81  +		$(MARKDOWN) $$f | m4 -D "__URL"=$$link -P $(MACROS) - $(ATOM_E_T) \
    80     82   			| head -n -4 >> $(SRC)/atom.xml; \
    81     83   	done
    82     84   	@echo "</feed>" >> $(SRC)/atom.xml
    83     85   
    84     86   
    85     87   $(SRC)/%.html.m4: $(SRC)/%.md.m4 
    86         -	@markdown $< > $@
           88  +	@$(MARKDOWN) $< > $@
    87     89   
    88     90   $(SRC)/%: $(SRC)/%.m4 $(MACROS)
    89     91   	@m4 -P $(MACROS) $< > $@
    90     92   
    91     93   $(DST)/%: $(SRC)/%
    92     94   	@install -m 644 -D $< $@
    93     95