From c6b12cd3310aeb4537942866591a45c5a86dafbb Mon Sep 17 00:00:00 2001 From: Stef Dunlap Date: Thu, 25 Aug 2022 14:15:54 -0400 Subject: [PATCH] Use git for pub date in RSS I noticed that the RSS feed was using stat to figure out when a file was modified for its pub date. This has the unfortunate side effect that the comics are out of order in the RSS feed based on if they are modified (e.g. for a typo.) This uses git to find out when the file was first introduced and uses that as the pub date. A note, the file will first have to be committed before updating the RSS feed, so the steps may look something like just build git commit . just rss git commit . Hopefully that's not too cumbersome. --- bin/rss.sh | 9 +- feed.xml | 438 ++++++++++++++++++++++++++--------------------------- 2 files changed, 225 insertions(+), 222 deletions(-) diff --git a/bin/rss.sh b/bin/rss.sh index cf19917..ca04c43 100755 --- a/bin/rss.sh +++ b/bin/rss.sh @@ -1,13 +1,16 @@ -#bin/sh +#!/bin/sh echo "It's Pro Toad and Superb Owl" > feed.xml echo "https://git.tilde.town/dozens/protoadandsuperbowlIt's Pro Toad and Superb Owl!/bin/sh" >> feed.xml -for f in $(find . -type f -iname '*.md' -depth 1 ! -name 'README.md' | sed 's/\.\///'); do +for f in *.md; do + if [ $f == "README.md" ]; then + continue + fi echo " $f https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/$f - $(stat -f "%m%t%Sm %N" $f | cut -f2 | cut -f1-4 -d ' ') + $(git log --follow --format=%ad --date default $f | tail -1) > feed.xml pandoc $f >> feed.xml echo "]]> diff --git a/feed.xml b/feed.xml index 8916df9..d2bdf0d 100644 --- a/feed.xml +++ b/feed.xml @@ -1,9 +1,80 @@ It's Pro Toad and Superb Owl https://git.tilde.town/dozens/protoadandsuperbowlIt's Pro Toad and Superb Owl!/bin/sh + + 00001.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00001.md + Wed Feb 10 12:28:44 2021 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +ya see, some people go real fast +and other people they go real slow +yeah that's it doncha know +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+yeah that's the real root cause of most 
+workplace conflict 
+]]>
+
+ + 00002.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00002.md + Wed Feb 10 12:28:44 2021 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +...and that's how I became a YAML engineer. +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+To be honest, I'm not sure it's a real job either. 
+But they keep giving me YAML and I keep 
+ENGINEERING it! 
+]]>
+
+ + 00003.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00003.md + Wed Feb 10 12:28:44 2021 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +So did you watch the Super Bowl? +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+Yeah, me neither. 
+]]>
+
00004.md https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00004.md - Aug 25 11:13:16 2022 + Wed Feb 10 12:28:44 2021 -0700 (@)(@) {0,0} (~~~~) ./) ) @@ -24,101 +95,12 @@ Budweiser beer? \ Yep! I guess you could say it was a SUPER BOWL PROTO AD! -]]> - - - 00010.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00010.md - Aug 25 11:13:17 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -a guy was looking for a priest to officiate his -wedding and narrowed it down to his final two -choices. the first one walked in with two -beetles and started praying over the bugs. the -second one started spraying everybody with -holy water from a water gun. Know who he chose? -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-He chose the blesser of two weevils 
- 
-]]>
-
- - 00001.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00001.md - Aug 25 11:13:16 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -ya see, some people go real fast -and other people they go real slow -yeah that's it doncha know -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-yeah that's the real root cause of most 
-workplace conflict 
-]]>
-
- - 00011.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00011.md - Aug 25 11:13:17 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -So I was down by the capitol and I noticed some -kind of protest was happening. I saw a couple -people wearing US flags and thought to myself, -ew, probably a bunch of treasonous right-wing -fundamentalist bastards. Which, you know, is -always the first thing you think when you see -somebody wearing the US flag. But then I saw -somebody holding a "My Body My Choice" sign and -thought, aw, it must be some pro-choicers! And I -decided to get a little closer to check it out. -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-I got close enough to see a bunch of the other 
-signs and they were all like, "No Jab! No 
-Vaccine!" and that's when I knew I had been 
-tricked. It WAS a bunch of treasonous 
-right-wing fundamentalist bastards! I said 
-"ew" again and turned around and ran away. 
]]>
00005.md https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00005.md - Aug 25 11:13:17 2022 + Fri Feb 12 10:38:57 2021 -0700 (@)(@) {0,0} (~~~~) ./) ) @@ -139,133 +121,12 @@ All I want is like a small cute remote information HIKING TRAIL somewhere out in the woods where I can see some flowers and leaves and listen to the birds and stuff. -]]> - - - 00008.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00008.md - Aug 25 11:13:17 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -There was a sense of euphoria while we were in -flow, like we were invinsible, but afterwards -everything seemed brittle and fragile like it -was held together with duct tape and kite string -and like it might all come crumbling down if the -wind blew in from the wrong direction. And there -we were in the aftermath, unsure whether we -accomplished our goals, who we hurt in the -process, or if there was anything good about it -all. -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-So anyway that's what we call a "hackathon". The 
-tech bros invited me to "do some lines" and at 
-this point I can't remember if it was code or 
-coke. 
-]]>
-
- - 00009.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00009.md - Aug 25 11:13:17 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -So I picked up a book in the middle of this epic -fantasy series. It's by this author who I heard -does really good sword and sorcery stories, and -I'm into that. Anyway the story opens on a -tragic, lonely noble lord, last of his line, -subject to disfigurement because of the family -curse and whatnot. But, get this, it totally -takes place in Old Germany during the rise of the -Nazi party! -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-I was so disoriented that I looked it up, and 
-there will eventually be a classic fantasy 
-storyline that interweaves with the modern 
-nazi storyline. 
- 
-Which means eventually the hero is literally 
-going ride a dragon to Hitler's bunker and punch 
-him in the face and if there's one thing this 
-world needs more of, it's mother fucking 
-dragons beating the shit out of nazis. 
-]]>
-
- - 00002.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00002.md - Aug 25 11:13:16 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -...and that's how a became a YAML engineer. -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-To be honest, I'm not sure it's a real job either. 
-But they keep giving me YAML and I keep 
-ENGINEERING it! 
-]]>
-
- - 00012.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00012.md - Aug 25 11:13:17 2022 - (@)(@) {0,0} - (~~~~) ./) ) - (>vv<) " " - - \ -Ed is the standard text editor! -
 (@)(@)     {0,0}  -- Hoo?
- (~~~~)    ./) )          
- (>vv<)      " "          
-
 (@)(@)     {0,0}  
- (~~~~)    ./) )   
- (>vv<)      " "   
-                   
-     \             
-? 
-? 
-? 
]]>
00006.md https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00006.md - Aug 25 11:13:17 2022 + Fri Feb 26 08:28:46 2021 -0700 (@)(@) {0,0} (~~~~) ./) ) @@ -304,7 +165,7 @@ people. 00007.md https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00007.md - Feb 26 08:11:25 2021 + Wed Feb 10 12:28:44 2021 -0700 Pro Toad and Superb Owl
 (@)(@)     {0,0}
@@ -323,16 +184,25 @@ people. 
]]>
- 00003.md - https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00003.md - Aug 25 11:13:16 2022 + 00008.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00008.md + Fri Feb 26 08:28:46 2021 -0700 (@)(@) {0,0} (~~~~) ./) ) (>vv<) " " \ -So did you watch the Super Bowl? +There was a sense of euphoria while we were in +flow, like we were invinsible, but afterwards +everything seemed brittle and fragile like it +was held together with duct tape and kite string +and like it might all come crumbling down if the +wind blew in from the wrong direction. And there +we were in the aftermath, unsure whether we +accomplished our goals, who we hurt in the +process, or if there was anything good about it +all.
 (@)(@)     {0,0}  -- Hoo?
  (~~~~)    ./) )          
  (>vv<)      " "          
@@ -341,7 +211,137 @@ So did you watch the Super Bowl? (>vv<) " " \ -Yeah, me neither. +So anyway that's what we call a "hackathon". The +tech bros invited me to "do some lines" and at +this point I can't remember if it was code or +coke. +]]>
+
+ + 00009.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00009.md + Sat Apr 17 11:45:40 2021 -0600 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +So I picked up a book in the middle of this epic +fantasy series. It's by this author who I heard +does really good sword and sorcery stories, and +I'm into that. Anyway the story opens on a +tragic, lonely noble lord, last of his line, +subject to disfigurement because of the family +curse and whatnot. But, get this, it totally +takes place in Old Germany during the rise of the +Nazi party! +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+I was so disoriented that I looked it up, and 
+there will eventually be a classic fantasy 
+storyline that interweaves with the modern 
+nazi storyline. 
+ 
+Which means eventually the hero is literally 
+going ride a dragon to Hitler's bunker and punch 
+him in the face and if there's one thing this 
+world needs more of, it's mother fucking 
+dragons beating the shit out of nazis. 
+]]>
+
+ + 00010.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00010.md + Wed Dec 1 07:51:43 2021 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +a guy was looking for a priest to officiate his +wedding and narrowed it down to his final two +choices. the first one walked in with two +beetles and started praying over the bugs. the +second one started spraying everybody with +holy water from a water gun. Know who he chose? +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+He chose the blesser of two weevils 
+ 
+]]>
+
+ + 00011.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00011.md + Thu Feb 3 22:24:58 2022 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +So I was down by the capitol and I noticed some +kind of protest was happening. I saw a couple +people wearing US flags and thought to myself, +ew, probably a bunch of treasonous right-wing +fundamentalist bastards. Which, you know, is +always the first thing you think when you see +somebody wearing the US flag. But then I saw +somebody holding a "My Body My Choice" sign and +thought, aw, it must be some pro-choicers! And I +decided to get a little closer to check it out. +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+I got close enough to see a bunch of the other 
+signs and they were all like, "No Jab! No 
+Vaccine!" and that's when I knew I had been 
+tricked. It WAS a bunch of treasonous 
+right-wing fundamentalist bastards! I said 
+"ew" again and turned around and ran away. 
+]]>
+
+ + 00012.md + https://git.tilde.town/dozens/protoadandsuperbowl/raw/branch/master/00012.md + Wed Feb 10 12:28:44 2021 -0700 + (@)(@) {0,0} + (~~~~) ./) ) + (>vv<) " " + + \ +Ed is the standard text editor! +
 (@)(@)     {0,0}  -- Hoo?
+ (~~~~)    ./) )          
+ (>vv<)      " "          
+
 (@)(@)     {0,0}  
+ (~~~~)    ./) )   
+ (>vv<)      " "   
+                   
+     \             
+? 
+? 
+? 
]]>