license
This commit is contained in:
parent
8de31cbea3
commit
ebcfbd9943
|
@ -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 <gemini://xj-ix.luxe/wiki/chaotic-software/>
|
4
Makefile
4
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/
|
||||
|
|
|
@ -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 <//xj-ix.luxe/wiki/chaotic-software/>
|
||||
|
|
3
g2e.awk
3
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 " <item id=\"" id "\" href=\"" id ".xhtml\" media-type=\"application/xhtml+xml\"/>\n"
|
||||
spinetoc = spinetoc " <itemref idref=\"" id "\" />\n"
|
||||
|
||||
toc = toc write_template( "toc-navmap.ncx", ch )
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue