diff options
author | Case Duckworth | 2015-04-04 23:58:22 -0700 |
---|---|---|
committer | Case Duckworth | 2015-04-04 23:58:22 -0700 |
commit | 529ede146afd125c76d86eb55969983af8ee21db (patch) | |
tree | f80e532dbcfade4a2dee5e3d122a5bc2d623622e /trunk | |
parent | Add backlinks to backlinks (diff) | |
download | autocento-529ede146afd125c76d86eb55969983af8ee21db.tar.gz autocento-529ede146afd125c76d86eb55969983af8ee21db.zip |
Some revision & TOC inclusion
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/Sacrifice_of_Isaac-Caravaggio.jpg | bin | 0 -> 6892261 bytes | |||
-rw-r--r-- | trunk/backlink.sh | 6 | ||||
-rw-r--r-- | trunk/common-titles.sh | 4 | ||||
-rw-r--r-- | trunk/first-lines.sh | 4 | ||||
-rw-r--r-- | trunk/lozenge.js | 2 | ||||
-rw-r--r-- | trunk/toc.head | 11 | ||||
-rw-r--r-- | trunk/toc.sh | 26 | ||||
-rw-r--r-- | trunk/versify.exe | bin | 13686106 -> 13686106 bytes |
8 files changed, 41 insertions, 12 deletions
diff --git a/trunk/Sacrifice_of_Isaac-Caravaggio.jpg b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg new file mode 100644 index 0000000..e7e34c6 --- /dev/null +++ b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg | |||
Binary files differ | |||
diff --git a/trunk/backlink.sh b/trunk/backlink.sh index c9740d9..f6feb7d 100644 --- a/trunk/backlink.sh +++ b/trunk/backlink.sh | |||
@@ -4,13 +4,9 @@ | |||
4 | searchQuery="$1"; # .html file to backlink | 4 | searchQuery="$1"; # .html file to backlink |
5 | outFile="$2"; # .back file to create | 5 | outFile="$2"; # .back file to create |
6 | headerFile="$3"; # header information file | 6 | headerFile="$3"; # header information file |
7 | islandHead="$4"; | 7 | shift 3; |
8 | shift 4; | ||
9 | glob="$@"; # where to search for backlinks | 8 | glob="$@"; # where to search for backlinks |
10 | 9 | ||
11 | islandLink="island" | ||
12 | [[ ! -f ${islandLink}.txt ]] && cat "$islandHead" > ${islandLink}.txt; | ||
13 | |||
14 | # Find backlinkers | 10 | # Find backlinkers |
15 | echo -n "Back-linking \"$searchQuery\"" | 11 | echo -n "Back-linking \"$searchQuery\"" |
16 | cat "$headerFile" > "$outFile"; | 12 | cat "$headerFile" > "$outFile"; |
diff --git a/trunk/common-titles.sh b/trunk/common-titles.sh index df6158d..bae8a10 100644 --- a/trunk/common-titles.sh +++ b/trunk/common-titles.sh | |||
@@ -1,12 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | outFile="$1"; | 3 | outFile="$1"; |
4 | header="$2"; | 4 | shift 1; |
5 | shift 2; | ||
6 | glob="$@"; | 5 | glob="$@"; |
7 | 6 | ||
8 | echo -n "Compiling ${outFile}"; | 7 | echo -n "Compiling ${outFile}"; |
9 | cat "$header" > $outFile; | ||
10 | 8 | ||
11 | for file in $glob; do | 9 | for file in $glob; do |
12 | # Copy title to $outFile & link | 10 | # Copy title to $outFile & link |
diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh index fb06026..1378a82 100644 --- a/trunk/first-lines.sh +++ b/trunk/first-lines.sh | |||
@@ -1,8 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | outFile="$1"; | 3 | outFile="$1"; |
4 | header="$2"; | 4 | shift 1; |
5 | shift 2; | ||
6 | glob="$@"; | 5 | glob="$@"; |
7 | 6 | ||
8 | firstLineOf() { # $1 = file | 7 | firstLineOf() { # $1 = file |
@@ -18,7 +17,6 @@ firstLineOf() { # $1 = file | |||
18 | } | 17 | } |
19 | 18 | ||
20 | echo -n "Compiling ${outFile}" | 19 | echo -n "Compiling ${outFile}" |
21 | cat "$header" > $outFile | ||
22 | 20 | ||
23 | for file in $glob; do | 21 | for file in $glob; do |
24 | # Copy first line to $outFile & link | 22 | # Copy first line to $outFile & link |
diff --git a/trunk/lozenge.js b/trunk/lozenge.js index 171e251..62fcfd0 100644 --- a/trunk/lozenge.js +++ b/trunk/lozenge.js | |||
@@ -6,7 +6,7 @@ | |||
6 | function _lozenge() { | 6 | function _lozenge() { |
7 | var lozenge = document.getElementById('lozenge'); | 7 | var lozenge = document.getElementById('lozenge'); |
8 | // array with all files {{{ | 8 | // array with all files {{{ |
9 | var files=["100-lines.html","about-the-author.html","about.html","about_author.html","abstract.html","amber-alert.html","and.html","angeltoabraham.html","apollo11.html","arspoetica.html","art.html","axe.html","big-dipper.html","boar.html","boy_bus.html","building.html","call-me-aural-pleasure.html","cereal.html","cold-wind.html","collage-instrument.html","creation-myth.html","deadman.html","death-zone.html","deathstrumpet.html","dollywood.html","dream.html","early.html","elegyforanalternateself.html","epigraph.html","ex-machina.html","exasperated.html","father.html","feedingtheraven.html","finding-the-lion.html","fire.html","found-typewriter-poem.html","hands.html","hard-game.html","hardware.html","howithappened.html","howtoread.html","hymnal.html","i-am.html","i-think-its-you.html","i-want-to-say.html","i-wanted-to-tell-you-something.html","in-bed.html","initial-conditions.html","january.html","joke.html","lappel-du-vide.html","largest-asteroid.html","last-bastion.html","last-passenger.html","leaf.html","leg.html","likingthings.html","listen.html","love-as-god.html","lovesong.html","man.html","manifesto_poetics.html","moon-drowning.html","moongone.html","mountain.html","movingsideways.html","music-433.html","no-nothing.html","notes.html","nothing-is-ever-over.html","on-genre-dimension.html","onformalpoetry.html","options.html","ouroboros_memory.html","paul.html","peaches.html","philosophy.html","phone.html","planks.html","plant.html","poetry-time.html","prelude.html","problems.html","process.html","proverbs.html","punch.html","purpose-dogs.html","question.html","real-writer.html","reports.html","riptide_memory.html","ronaldmcdonald.html","roughgloves.html","sapling.html","seasonal-affective-disorder.html","sense-of-it.html","serengeti.html","shed.html","shipwright.html","sixteenth-chapel.html","snow.html","something-simple.html","spittle.html","squirrel.html","stagnant.html","statements-frag.html","stayed-on-the-bus.html","stump.html","swansong-alt.html","swansong.html","swear.html","table_contents.html","tapestry.html","telemarketer.html","the-night-we-met.html","the-sea_the-beach.html","theoceanoverflowswithcamels.html","time-looks-up-to-the-sky.html","todaniel.html","toilet.html","toothpaste.html","treatise.html","underwear.html","walking-in-the-rain.html","wallpaper.html","weplayedthosegamestoo.html","what-we-are-made-of.html","when-im-sorry-i.html","window.html","words-irritable-reaching.html","words-meaning.html","worse-looking-over.html","writing.html","x-ray.html","yellow.html"] | 9 | var files=["about-the-author.html","about.html","about_author.html","abstract.html","amber-alert.html","and.html","angeltoabraham.html","apollo11.html","arspoetica.html","art.html","axe.html","big-dipper.html","boar.html","boy_bus.html","building.html","call-me-aural-pleasure.html","cereal.html","cold-wind.html","collage-instrument.html","creation-myth.html","deadman.html","death-zone.html","deathstrumpet.html","dollywood.html","dream.html","early.html","elegyforanalternateself.html","epigraph.html","ex-machina.html","exasperated.html","father.html","feedingtheraven.html","finding-the-lion.html","fire.html","found-typewriter-poem.html","hands.html","hard-game.html","hardware.html","howithappened.html","howtoread.html","hymnal.html","i-am.html","i-think-its-you.html","i-want-to-say.html","i-wanted-to-tell-you-something.html","in-bed.html","initial-conditions.html","january.html","joke.html","lappel-du-vide.html","largest-asteroid.html","last-bastion.html","last-passenger.html","leaf.html","leg.html","likingthings.html","listen.html","love-as-god.html","lovesong.html","man.html","manifesto_poetics.html","moon-drowning.html","moongone.html","mountain.html","movingsideways.html","music-433.html","no-nothing.html","notes.html","nothing-is-ever-over.html","on-genre-dimension.html","one-hundred-lines.html","onformalpoetry.html","options.html","ouroboros_memory.html","paul.html","peaches.html","philosophy.html","phone.html","planks.html","plant.html","poetry-time.html","prelude.html","problems.html","process.html","proverbs.html","punch.html","purpose-dogs.html","question.html","real-writer.html","reports.html","riptide_memory.html","ronaldmcdonald.html","roughgloves.html","sapling.html","seasonal-affective-disorder.html","sense-of-it.html","serengeti.html","shed.html","shipwright.html","sixteenth-chapel.html","snow.html","something-simple.html","spittle.html","squirrel.html","stagnant.html","statements-frag.html","stayed-on-the-bus.html","stump.html","swansong-alt.html","swansong.html","swear.html","table_contents.html","tapestry.html","telemarketer.html","the-night-we-met.html","the-sea_the-beach.html","theoceanoverflowswithcamels.html","time-looks-up-to-the-sky.html","todaniel.html","toilet.html","toothpaste.html","treatise.html","underwear.html","walking-in-the-rain.html","wallpaper.html","weplayedthosegamestoo.html","what-we-are-made-of.html","when-im-sorry-i.html","window.html","words-irritable-reaching.html","words-meaning.html","worse-looking-over.html","writing.html","x-ray.html","yellow.html"] |
10 | // }}} | 10 | // }}} |
11 | 11 | ||
12 | var index = Math.floor(Math.random() * files.length); | 12 | var index = Math.floor(Math.random() * files.length); |
diff --git a/trunk/toc.head b/trunk/toc.head new file mode 100644 index 0000000..29cb69e --- /dev/null +++ b/trunk/toc.head | |||
@@ -0,0 +1,11 @@ | |||
1 | --- | ||
2 | title: Autocento of the breakfast table | ||
3 | id: toc | ||
4 | subtitle: table of contents | ||
5 | genre: list | ||
6 | |||
7 | project: | ||
8 | title: About autocento | ||
9 | class: meta | ||
10 | ... | ||
11 | |||
diff --git a/trunk/toc.sh b/trunk/toc.sh new file mode 100644 index 0000000..fe440cb --- /dev/null +++ b/trunk/toc.sh | |||
@@ -0,0 +1,26 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | outFile="$1"; | ||
4 | shift 1; | ||
5 | glob="$@"; | ||
6 | |||
7 | echo -n "Compiling $outFile" | ||
8 | |||
9 | for file in $glob; do | ||
10 | title=$(grep '^title: ' $file | cut -d' ' -f2-); | ||
11 | subtitle=$(grep '^subtitle: ' $file | cut -d' ' -f2-); | ||
12 | htmlFile="${file%.txt}.html" | ||
13 | # if [[ "$title" == "Autocento of the breakfast table" ]]; then | ||
14 | # echo "#. [$subtitle]($htmlFile)" >> "$outFile"; | ||
15 | # else | ||
16 | # echo "#. [$title]($htmlFile)" >> "$outFile"; | ||
17 | # fi | ||
18 | if [[ -n "$subtitle" ]]; then | ||
19 | echo "#. [$title: $subtitle]($htmlFile)" >> "$outFile" | ||
20 | else | ||
21 | echo "#. [$title]($htmlFile)" >> "$outFile"; | ||
22 | fi | ||
23 | echo -n "." | ||
24 | done | ||
25 | |||
26 | echo "Done." | ||
diff --git a/trunk/versify.exe b/trunk/versify.exe index cf9809c..d479c80 100644 --- a/trunk/versify.exe +++ b/trunk/versify.exe | |||
Binary files differ | |||