dot

packages and services management
Log | Files | Refs | README

commit 7b908aff7ed09bc770010ec5d50bd3ddc0318988
parent 9f92eba7ddf9a601919762a2f2cd374d30ecaad2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue,  6 Mar 2018 11:34:03 +0100

added build recipe for sfeed

Diffstat:
Abin/cc-printf | 17+++++++++++++++++
Mbin/xdg-open | 7++-----
Mpack/sfeed/build | 2+-
Msfeed | 1+
Muri | 7++++---
5 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/bin/cc-printf b/bin/cc-printf @@ -0,0 +1,17 @@ +#!/bin/sh -e + +cat > a.c << EOF +#include <stdio.h> + +int +main(void) +{ + printf("$1", $2); + return 0; +} +EOF + +cc a.c +./a.out + +rm -f a.c a.out diff --git a/bin/xdg-open b/bin/xdg-open @@ -18,7 +18,6 @@ esac (*.img|*.iso) exec qemu-system-x86_64 -m 500M "$1" ;; -#--- media --------------------------------------------------------------------- (*.pdf) mupdf "$1" & exit @@ -37,18 +36,17 @@ esac (*.opus) exec opusdec "$1" ;; -(*.webm|*.mp4|*.mkv|*.ogv|*.avi|*.mp3|*.flac|*.ogg) +(*.webm|*.mp4|*.mkv|*.ogv|*.avi|*.mp3|*.flac|*.ogg|*.wav) exec ffplay "$1" ;; (*/music/*) find "$1" -type f | sort | while IFS='' read -r song do printf '%s\n' "$song" - "$0" "$song" + ffplay "$song" done exit ;; -#--- pager --------------------------------------------------------------------- (*.[0-9]|*.[0-9]p|*.[0-9].gz) exec mandoc -a -T utf8 "$1" ;; @@ -58,7 +56,6 @@ esac (*.html) exec retawq "$1" ;; -#--- archive ------------------------------------------------------------------- (*.tgz) mv "$1" "${1%.tgz}.tar.gz" exec "$0" "${1%.tgz}.tar.gz" diff --git a/pack/sfeed/build b/pack/sfeed/build @@ -1,6 +1,6 @@ #!/bin/sh -ex -cp "$PKG/sfeed_twtxt.c" "$SRC" +cp "$PACK/sfeed/sfeed_twtxt.c" "$SRC" make MANPREFIX="$OPT/share/man" PREFIX="$OPT" install make BIN='sfeed_twtxt' diff --git a/sfeed b/sfeed @@ -2,3 +2,4 @@ dragonflydigest.com https://www.dragonflydigest.com/feed codemadness.nl http://www.codemadness.nl/rss.xml kernel.org http://kernel.org/kdist/rss.xml xkcd.com http://xkcd.com/atom.xml +research.googleblog.com http://feeds.feedburner.com/blogspot/gJZg diff --git a/uri b/uri @@ -17,6 +17,7 @@ gopher://r-36.net gopher://suckless.org gopher://tx.god.jp gopher://z3bra.org +http://198.204.250.219:19999 http://2f30.org http://bitreich.org:3232/live http://calomel.org @@ -49,9 +50,9 @@ http://www.bottomupcs.com/global_offset_tables.xhtml http://www.destroyallsoftware.com/compendium/network-protocols http://www.mindfruit.co.uk/2012/06/relocations-relocations.html http://www.tldp.org/guides.html -https://bulbizarre.swordarmor.fr/munin/ -https://radio.2f30.org:8443/live.mp3 -https://raft.github.io/ +http://bulbizarre.swordarmor.fr/munin/ +http://radio.2f30.org:8443/live.mp3 +http://raft.github.io/ irc://irc.cyberia.is/2f30 irc://irc.cyberia.is/airbnb irc://irc.cyberia.is/cyberia