Skip to content

Instantly share code, notes, and snippets.

View sizeofvoid's full-sized avatar

Rafael Sadowski sizeofvoid

View GitHub Profile
@sizeofvoid
sizeofvoid / gist:e00fad2c3ae7f8365728a43faac8dd8c
Created October 7, 2022 19:42
ports_find_missing_libs and ports_find_missing_lib_ports
ports_find_missing_libs() {
make port-lib-depends-check | \
while read LINE
do
if [[ $LINE == "Missing lib: "* ]]; then
LIB_NAME=$(echo $LINE | awk '{print $3}')
LIB_NAME=${LIB_NAME%.*}
rg ${LIB_NAME} ~/wip-ports | rg SHARED_LIBS | \
while read SHARED_LIB
do
@sizeofvoid
sizeofvoid / portsdiff.zsh
Created March 28, 2018 14:07
OpenBSD ports diff function
# Usage: portsdiff <diff-name>
# Creates a new diff from the current port cvs directory in DIR.
# If no parameter is passed PKGNAME will use as filename.
portsdiff () {
local DIR="$HOME/patches"
local SAVEFILE
if [ ! -d "$DIR" ]; then
echo "create $DIR"
mkdir -p $DIR