dot

packages and services management
Log | Files | Refs | README

commit 592c0fa903c5ecf980adadc95dd41633a2ecab17
parent dc3e539800aa64ceda3dc2cdf191aadfafd83274
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 11 Mar 2018 00:21:36 +0100

supporting cvs for pack

Diffstat:
Mbin/pack | 17+++++++++++++----
Mbin/xdg-open | 7+++++--
Apack/catpoint/build | 2++
Apack/man-openbsd/build | 3+++
Apack/man-openbsd/cvs | 1+
Dpack/man-openbsd/tar | 1-
Dpack/mg/build | 2--
Dpack/mg/tar | 1-
Muri | 1+
9 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/bin/pack b/bin/pack @@ -5,12 +5,14 @@ export SRC="$PACKROOT/src/$2" export CFLAGS="-I'$PACKROOT/include'" export LDFLAGS="-L'$PACKROOT/lib'" +mkdir -p "$PACKROOT/src" "$PACKROOT/opt" + case "$1" in (tar) [ -d "$SRC" ] && exit 0 || mkdir -p "$SRC" + [ -d "$SRC" ] && exit 0 || mkdir -p "$SRC" IFS="" read -r url < "$PACK/$2/tar" - curl -#L "$url" | case "$url" in (*.tgz|*.tar.gz) gzip -d - ;; (*.tbz|*.tar.bz2) bzip2 -d - ;; @@ -23,13 +25,20 @@ case "$1" in (git) [ -d "$SRC" ] && exit 0 - mkdir -p "$PACKROOT/src" IFS="" read -r url < "$PACK/$2/git" git clone "$url" "$SRC" ;; +(cvs) + [ -d "$SRC" ] && exit 0 || mkdir -p "$SRC" + + read -r url path < "$PACK/$2/cvs" + cd "$SRC" + cvs -qd "$url" checkout -P "$path" + ;; (get) - [ -f "$PACK/$2/tar" ] && exec "$0" tar "$2" - [ -f "$PACK/$2/git" ] && exec "$0" git "$2" + [ ! -f "$PACK/$2/tar" ] || exec "$0" tar "$2" + [ ! -f "$PACK/$2/git" ] || exec "$0" git "$2" + [ ! -f "$PACK/$2/cvs" ] || exec "$0" cvs "$2" exit 1 ;; (build) diff --git a/bin/xdg-open b/bin/xdg-open @@ -168,7 +168,7 @@ case "$1" in printf '/j #%s\n' "$path" > "$HOME/var/irc/$host/in" ;; (news://*) - exec retawq "$1" + exec firefox "$1" ;; (sftp://*) [ "$port" = . ] && port='22' @@ -184,6 +184,9 @@ case "$1" in (*://*) exec printf 'unsupported protocol\n' 1>&2 ;; +(r/*) + exec firefox "http://reddit.com/$1" + ;; (*\([0-9]\)|*\([0-9]p\)) exec man "${1%(*}" ;; @@ -236,7 +239,7 @@ case "$1" in exec radare2 "$1" ;; (*.html) - exec retawq "$1" + exec firefox "$1" ;; (*.tgz) mv "$1" "${1%.tgz}.tar.gz" diff --git a/pack/catpoint/build b/pack/catpoint/build @@ -0,0 +1 @@ +../build/make+ \ No newline at end of file diff --git a/pack/man-openbsd/build b/pack/man-openbsd/build @@ -0,0 +1,3 @@ +#!/bin/sh -e + +cp -r src/share "$OPT/share" diff --git a/pack/man-openbsd/cvs b/pack/man-openbsd/cvs @@ -0,0 +1 @@ +anoncvs@anoncvs.ca.openbsd.org:/cvs src/share/man diff --git a/pack/man-openbsd/tar b/pack/man-openbsd/tar @@ -1 +0,0 @@ -https://www.freebsd.org/cgi/man.cgi?apropos=2&manpath=OpenBSD+6.2.tar.gz diff --git a/pack/mg/build b/pack/mg/build @@ -1 +0,0 @@ -../build/make- \ No newline at end of file diff --git a/pack/mg/tar b/pack/mg/tar @@ -1 +0,0 @@ -http://devio.us/~bcallah/mg/mg-20170917.tar.gz diff --git a/uri b/uri @@ -53,6 +53,7 @@ http://wurstcaptures.untergrund.net/music http://www.3x6x.com/discography.html http://www.bottomupcs.com/global_offset_tables.xhtml http://www.destroyallsoftware.com/compendium/network-protocols +http://www.media.mit.edu/groups/open-agriculture-openag/overview/ http://www.mindfruit.co.uk/2012/06/relocations-relocations.html http://www.researchgate.net/profile/Kazuhiro_Oiwa http://www.tldp.org/guides.html