config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit e390e7c63dfea39520b826d7e7986445e9991602
parent 79882531a8dae6edb22e8fdb2488b37f4460f9fb
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue, 31 Aug 2021 01:13:58 -0700

Remove and rename scripts

Diffstat:
Dlocal/bin/.local/bin/chead | 14--------------
Dlocal/bin/.local/bin/len | 20--------------------
Dlocal/bin/.local/bin/lynx | 10----------
Rlocal/bin/.local/bin/portslist -> local/bin/.local/bin/pkg_list | 0
Dlocal/bin/.local/bin/smp | 13-------------
Dlocal/bin/.local/bin/snap | 12------------
6 files changed, 0 insertions(+), 69 deletions(-)

diff --git a/local/bin/.local/bin/chead b/local/bin/.local/bin/chead @@ -1,14 +0,0 @@ -#!/usr/bin/awk -f -# Copyright 2021 Jacob R. Edwards -# License: GPLv3 -# Extract C function declarations from definitions -# -# Obsoleted by cdec (although kept in case of cdec failure) - -/^[a-zA-Z_]/ { - var = $0; - getline; - if (match($0, /\)$/) <= 0) - next; - printf("%s\t%s;\n", var, $0); -} diff --git a/local/bin/.local/bin/len b/local/bin/.local/bin/len @@ -1,20 +0,0 @@ -#!/bin/sh -# Copyright 2021 Jacob R. Edwards -# License: GPLv3 -# -# len -- filter lines of a specific length -# -# This is actually a simple wrapper around awk(1), so the `operand' -# argument is an awk(1) comparison operator. Note that it does not -# take file arguments. - -case $# -in -(1) - exec awk "length() == $1";; -(2) - exec awk "length() $1 $2";; -(*) - printf 'usage: %s [[operand] operator]\n' `basename $0` 1>&2 - exit 1 -esac diff --git a/local/bin/.local/bin/lynx b/local/bin/.local/bin/lynx @@ -1,10 +0,0 @@ -#!/bin/sh -# Copyright 2020 Jacob R. Edwards -# License: GPLv3 -# -# lynx -- lynx(1) wrapper -# -# Unfortunately it seems the `nocolor' flag has no lynx.cfg equivalent, -# and I don't want to learn lss, so I'm making a small wrapper script. - -exec $(whereis lynx) -nocolor "$@" diff --git a/local/bin/.local/bin/portslist b/local/bin/.local/bin/pkg_list diff --git a/local/bin/.local/bin/smp b/local/bin/.local/bin/smp @@ -1,13 +0,0 @@ -#!/bin/sh -eu -# Copyright 2021 Jacob R. Edwards -# License: GPLv3 -# -# smp -- stream mupdf(1) - -cleanup() rm -f "$tmp" - -tmp="$(mktemp -t mupdf-XXXXXXXXXX).$1" -trap cleanup 0 -cat >"$tmp" -shift -mupdf "$@" "$tmp" diff --git a/local/bin/.local/bin/snap b/local/bin/.local/bin/snap @@ -1,12 +0,0 @@ -#!/bin/sh -e -# Copyright 2021 Jacob R. Edwards -# License: GPLv3 -# -# snap -- screenshot to dated file -# -# Usage the same as maim(1) - -path="${XDG_DATA_HOME:-$HOME/.local/share}/$(basename $0)/$(date +%F/%H-%M-%S).ff" -mkdir -p "$(dirname $path)" -maim "$@" -f png | png2ff >"$path" -echo "$path"