From ebcfbd9943bfdc05c0a494f4d2d9f986365c74da Mon Sep 17 00:00:00 2001 From: sejo Date: Mon, 13 Dec 2021 20:56:05 -0600 Subject: [PATCH] license --- LICENSE.txt | 30 ++++++++++++++++++++++++++++++ Makefile | 4 +++- README.md | 6 +++++- g2e.awk | 3 +-- 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..bfd32e2 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,30 @@ +CHAOTIC SOFTWARE : BEWARE + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Don't expect support, ongoing development, or maintenance. side effects +may include uncomfortable clarity, dry mouth, and/or spiritual revolt. +For your own sanity, PLEASE FORK NOW! + +For more information, please refer to diff --git a/Makefile b/Makefile index ca2e19e..6efa8b7 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ clean: - rm example-book.gpub rm -r out/ + example-gpub: cd example-gpub; zip -r ../example-book.gpub *; cd - + epub: cd out; zip -r ../out.epub *; cd - + example: awk -f g2e.awk example-gpub/ diff --git a/README.md b/README.md index 84cf3df..649d2f7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ you can generate the corresponding epub file using: make example ``` -and then compress it with: +and then compress it as an epub with: ``` make epub @@ -30,3 +30,7 @@ for the moment this only generates the epub metadata and table of contents files * convert .gmi files to .xhtml * handle non-gmi files in the manifest + +# license + +> THIS IS CHAOTIC SOFTWARE BEWARE diff --git a/g2e.awk b/g2e.awk index 3227d89..7d07bc2 100644 --- a/g2e.awk +++ b/g2e.awk @@ -24,7 +24,7 @@ BEGIN{ } } - # read linked files from index and append as arguments + # read linked files from index and append as arguments to process while( getline < (gpubdir meta["index"]) ){ if($1~"=>") ARGV[ARGC++] = gpubdir indexdirname $2 } @@ -80,7 +80,6 @@ ARGIND==1 && /^=>/{ content = content " \n" spinetoc = spinetoc " \n" - toc = toc write_template( "toc-navmap.ncx", ch ) }