aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/rules.c
Commit message (Collapse)AuthorAgeFilesLines
* make: exec: support printing blogc variablesRafael G. Martins2019-07-141-14/+17
| | | | needs more tests
* Revert "make: support posts autoloading"Rafael G. Martins2019-05-011-28/+20
| | | | | | | | It works mostly fine, but if you build a website, delete some files and try to rebuild, it won't be able to detect the removed files. This may be reverted when I find a solution for this problem. This reverts commit 792ac4ec66dd098109a88065420ef95c1a78624f.
* make: support posts autoloadingRafael G. Martins2019-04-281-20/+28
|
* make: support posts sortingRafael G. Martins2019-04-281-3/+9
|
* make: fixed reloading of listing_entryRafael G. Martins2019-04-041-0/+2
|
* make: added support for `blogc -e`Rafael G. Martins2019-04-031-19/+20
| | | | must still add tests
* make: exit 1 on errorRafael G. Martins2019-03-281-4/+4
|
* *: update copyrightRafael G. Martins2019-01-151-1/+1
|
* make: fixed bug when trying to call a rule with incomplete nameRafael G. Martins2019-01-151-1/+2
| | | | | previous code was calling all the rules that matched the substring provided. it should only run exact matches.
* *: update copyrightRafael G. Martins2018-10-141-1/+1
|
* make: added atom_dump helper ruleRafael G. Martins2018-07-261-0/+22
|
* make: prevent dereferencing segfaults. minor style fixesRafael G. Martins2018-07-261-46/+54
|
* make: added utilitary function to generate filenamesRafael G. Martins2018-07-251-24/+19
|
* make: handle empty prefixes properlyRafael G. Martins2018-07-241-9/+13
| | | | still needs to add integration tests
* make: disable post listings if {atom_,}posts_per_page is 0Rafael G. Martins2018-06-101-1/+28
|
* Revert "make: disable pagination rules if <= 0 posts per page"Rafael G. Martins2018-06-101-27/+3
| | | | | | This reverts commit cab17026f64ba78bfd9dcac6327607af8e396ebd. Poorly implemented :/
* make: disable pagination rules if <= 0 posts per pageRafael G. Martins2018-06-091-3/+27
|
* make: fixed typo. `tags` rule was using `atom_posts_per_page`Rafael G. Martins2018-06-091-1/+1
|
* make: added 'watch' rule. improved 'runserver' rule.Rafael G. Martins2018-05-131-9/+18
|
* make: fixed pagination, added testsRafael G. Martins2018-03-201-2/+2
|
* make: allow to disable pagination by setting posts_per_page<0Rafael G. Martins2018-03-201-15/+23
|
* make: avoid infinite-loop if posts_per_page <= 0Rafael G. Martins2018-03-201-0/+3
|
* make: added `MAKE_POST` var to `posts` and `pages` rulesRafael G. Martins2018-03-111-15/+23
| | | | | | This variable will have the same string that was inserted in tbe `blogcfile` when listing posts and pages, and is useful to highlight active menu items, for example.
* make: do not run stat twice for regular files when copyingRafael G. Martins2018-02-241-8/+8
|
* make: improved runserver docsRafael G. Martins2017-11-191-1/+2
|
* make: renamed bm_exec_empty_dir()Rafael G. Martins2017-09-141-1/+1
|
* make: added 'html_order' and 'atom_order' settingsRafael G. Martins2017-08-031-0/+20
| | | | | | | these settings are used to change the order of the posts on the listings. by default, users are supposed to list their posts from older to newer in the blogcfile, and blogc-make will list them on descending order, both for html listings and atom listings.
* make: rules: do not run httpd if reloader failed to startRafael G. Martins2017-07-231-0/+3
|
* make: copy rule should support directories, recursivelyRafael G. Martins2017-04-301-2/+4
| | | | | | now any directories listed in the [copy] section of blogcfile will have its files copied recursively to the output dir. this is useful for big chunks of generated files, e.g. doxygen documentation.
* make: settings: do not read output_dir from blogcfileRafael G. Martins2017-04-281-27/+14
| | | | | now it is only possible to override output directory using environment variable. this commit also reduces the number trie lookups.
* make: fix compilation on androidRafael G. Martins2017-03-081-3/+3
|
* make: make the reloader interface genericRafael G. Martins2017-03-041-1/+1
| | | | this way it can run any rule, even if we don't need this feature now
* make: splitted reloaderRafael G. Martins2017-03-041-69/+5
|
* make: removed useless "verbose" variablesRafael G. Martins2017-03-041-25/+21
|
* make: reworked ctx usage by exec functionsRafael G. Martins2017-03-031-20/+16
|
* make: improved runserver thread handlingRafael G. Martins2017-02-271-24/+27
|
* *: updated copyrightRafael G. Martins2017-02-251-1/+1
|
* make: parse runserver arguments from cli, instead of envRafael G. Martins2017-02-241-26/+77
| | | | this is some over-optimized parser, to celebrate #cloudbleed :D
* blogc-make: renamed copy_files settings to copyRafael G. Martins2017-02-141-10/+10
|
* blogc-make: renamed auto-defined vars to MAKE_*Rafael G. Martins2017-02-131-14/+14
|
* blogc-make: use absolute path for runserver ruleRafael G. Martins2017-02-121-1/+1
|
* blogc-make: implemented automatic reloader for runserver ruleRafael G. Martins2017-02-121-1/+67
| | | | | this is not the best implementation possible, but it works for most use cases
* make: improved clean ruleRafael G. Martins2017-01-301-0/+4
|
* make: fixed includesRafael G. Martins2017-01-031-4/+2
|
* blogc-make: fixed clean ruleRafael G. Martins2017-01-031-1/+1
|
* make: implemented runserver ruleRafael G. Martins2016-12-271-0/+20
|
* make: convert "all" into an actual ruleRafael G. Martins2016-12-271-22/+48
|
* make: implemented a build tool for blogcRafael G. Martins2016-12-271-0/+752
so, this is basically what happens when you don't have anything better to do in the christmas weekend. most of this code was written in the last 2 or 3 days. i'd like to thank the chivas brothers, the weather and my psychological problems for this achievement. on a serious note, this tool still needs a man page, more tests, and the aws lambda function should be adapted to use it instead of (or together with) make/busybox. also, while talking about aws lambda, this tool can be nicely embedded into the blogc binary, to produce a single "small" static binary for usage in lambda ;)