aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* make: validate environment keysRafael G. Martins2016-12-271-1/+10
|
* github-lambda: blogc-make: integrateRafael G. Martins2016-12-273-8/+36
|
* github-lambda: drop external dependenciesRafael G. Martins2016-12-271-15/+3
|
* make: implemented a build tool for blogcRafael G. Martins2016-12-2716-4/+1997
| | | | | | | | | | | | | | | | | 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 ;)
* *: binaries should always return 3 on errors, for consistency.Rafael G. Martins2016-12-267-55/+55
| | | | | | We used to return 1 or 2 in case of errors, with no special meaning, other than "something is wrong", but these codes are reserved. Now we always return 3.
* config-parser: bc_config_get_list should return array instead of listRafael G. Martins2016-12-252-5/+12
|
* config-parser: added support to parse section as list of linesRafael G. Martins2016-12-253-12/+107
|
* blogc: common: git-receiver: improved error handlingRafael G. Martins2016-12-232-17/+18
|
* git-receiver: moved shell quote function to commonRafael G. Martins2016-12-215-27/+30
|
* config-parser: improved error reporting, added bc_config_get_with_defaultRafael G. Martins2016-12-202-6/+19
|
* github-lambda: do not use "file" as variableRafael G. Martins2016-12-141-22/+23
|
* github-lambda: initialize variableRafael G. Martins2016-12-141-0/+1
|
* github-lambda: random fixes; allow users to push to any bucketRafael G. Martins2016-12-141-25/+27
| | | | | previously it was only possible to push to a bucket name exactly like the GitHub repository.
* github-lambda: improve handling of busybox symlinksRafael G. Martins2016-12-141-4/+14
|
* lambda: add more dependenciesRafael G. Martins2016-12-131-2/+6
|
* github-lambda: removed unused importRafael G. Martins2016-12-121-1/+0
|
* github-lambda: fix directory index and allow to override content-typeRafael G. Martins2016-12-091-9/+34
| | | | | | | | this patch allows users to use files like `index.xml` as directory index, by renaming it to `index.html`, because Amazon S3 only allows one file name as directory index. it also allows users to override the automatically guessed content-type with something else, e.g. to force a charset.
* github-lambda: initial implementation of AWS Lambda functionRafael G. Martins2016-12-071-0/+127
|
* common/config-parser: minor fixRafael G. Martins2016-12-031-1/+1
|
* common/error: minor fixRafael G. Martins2016-12-021-1/+1
|
* post-receive: actually use rvRafael G. Martins2016-11-291-1/+1
|
* fixed includesRafael G. Martins2016-11-194-7/+2
|
* git-receiver: allow to push to mirror manuallyRafael G. Martins2016-11-191-25/+26
|
* git-receiver: minor optimizationsRafael G. Martins2016-11-191-1/+2
|
* git-receiver: optimize repo dir evaluationRafael G. Martins2016-11-181-32/+32
|
* git-receiver: avoid static buffer.Rafael G. Martins2016-11-181-18/+14
| | | | this simplifies code, but makes it less portable
* git-receiver: when rebuilding, change to repo dir asapRafael G. Martins2016-11-171-0/+5
|
* git-receiver: allow users to re-run the last successful buildRafael G. Martins2016-11-171-3/+47
| | | | | running the pre-receive hook manually on the server will re-run the last successful build.
* blogc: added more parenthesis to make gcc happy. trying to fix travisRafael G. Martins2016-10-151-1/+1
|
* blogc: we still need to strip newlines from end of lineRafael G. Martins2016-10-151-1/+8
|
* blogc: do not strip spaces, they are valid in file namesRafael G. Martins2016-10-151-4/+3
|
* blogc: add cli option to read list of source files from stdinRafael G. Martins2016-10-151-2/+27
| | | | | | | | | | this patch adds `-i` option to command line. it will instruct blogc to read stdin and parse it as a file where each source file is a line and empty lines and lines starting with `#` are ignored. this patch makes it possible to use blogc to build big blogs with lots of pages, that would hit the operating system max command line length when calling blogc to build pages.
* runserver: blogc/loader: improve strto*l handlingRafael G. Martins2016-10-143-7/+34
|
* renderer: fixed strtol error detection bug in freebsdRafael G. Martins2016-10-131-6/+5
| | | | | it seems that error detection for strtol using errno is a glibc extension.
* git-receiver: added tests for shell, fixed bugRafael G. Martins2016-10-111-48/+38
|
* git-receiver: fix previous patch, againRafael G. Martins2016-10-111-2/+2
|
* git-receiver: fix previous patchRafael G. Martins2016-10-111-2/+3
|
* git-receiver: actually use detected make/gmake implementationRafael G. Martins2016-10-111-1/+1
|
* git-receiver: detect if make/gmake is availableRafael G. Martins2016-10-111-0/+15
|
* git-receiver: added test for post-receive. fixed leakRafael G. Martins2016-10-111-0/+1
|
* trying to fix tests on travis againRafael G. Martins2016-10-101-2/+2
|
* Revert "trying to fix tests on travis"Rafael G. Martins2016-10-101-2/+2
| | | | This reverts commit 84dbde7d04a04434721ec9d2965af6d946713e5d.
* trying to fix tests on travisRafael G. Martins2016-10-101-2/+2
|
* removed uneeded error code. export LC_ALL=C in test scriptRafael G. Martins2016-10-101-3/+0
|
* git-receiver: added support to get mirror url from config fileRafael G. Martins2016-10-103-9/+134
| | | | this commit also includes some "integration test" in shell script
* *: fixed includesRafael G. Martins2016-10-0712-24/+4
|
* git-receiver: splitted/reimplemented and tested shell command parserRafael G. Martins2016-10-074-56/+182
|
* git-receiver: splitted and tested pre-receive input parserRafael G. Martins2016-10-045-81/+138
|
* git-receiver: splitted codeRafael G. Martins2016-09-297-475/+564
|
* runserver: always reply with content-lengthRafael G. Martins2016-09-271-2/+4
|