Can't get "gemlog.sh" by ~nytpu working on FreeBSD, looks like is too "linuxy".
Is there anyone that was able to make it work or can suggest me a similar alternative that works on FreeBSD?
Thanks in advance! ☺
1 year ago
For future geminauts that might find their way to this thread: my changes were upstreamed about two months ago. You can just use nytpu's script now.
https://git.sr.ht/~nytpu/gemlog.sh/ · 1 year ago
@Lykso I am terribly sorry, I was able to test your script only today but I realized I never downloaded your code and unfortunately it is expired; unless you put it somewhere else. ^^: · 1 year ago
Good luck! I hope it works for you when you do finally get to try it out. 😊 · 1 year ago
@lykso I believe I won't be able to test the script today either. ☹
I think I am able to start testing the script next Monday!
Promise! · 1 year ago
I won't be able to test it until Monday... 😞 · 1 year ago
I've noticed that the script submits nytpu's gemlog to Antenna every time it's run, rather than submitting the user's own gemlog. I've fixed that and re-uploaded the script, so you might want to re-download it if you've already downloaded it at this point. · 1 year ago
Here it is: gemini://lyk.so/temp/gemlog.sh
The only differences from the original script are:
- It uses the "hhmm" timezone format from the ISO spec instead of the "hh:mm" format. I figured this was a reasonable difference to allow, since it is still in compliance with the spec.
- ":z" was being used in the <updated> tags on the post items instead of the actual timezone offset, so I fixed that as well.
Tested on Debian and OpenBSD. Will be submitting a patch soon. Let me know if you encounter any problems. · 1 year ago
@lykso Nice!!! I don't code hence I opened the file, I cried, and then I closed it! ^^; · 1 year ago
I feel like taking a script containing Bash-isms and making it POSIX-compliant (or BSD-friendly, anyway) today. Working on it now. · 1 year ago
It looks like the script won't work on BSD:
- By removing date dependency, gemlog.sh now runs correctly on macOS (BSD date is not compatible with GNU date conversion syntax)
Never mind I am going to update my capsule and atom feed manually... · 1 year ago