diff --git a/Makefile b/Makefile index a757827..8c86913 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,10 @@ PROGRAMS= \ alpine-programs: apk add $(PROGRAMS) +arch-doas: + cd dist/doas-sudo + makepkg -si + arch-yay: git clone "https://aur.archlinux.org/yay.git" || true cd yay diff --git a/dotfiles/misc/PKGBUILD_doas-sudo b/dist/doas-sudo/PKGBUILD similarity index 100% rename from dotfiles/misc/PKGBUILD_doas-sudo rename to dist/doas-sudo/PKGBUILD diff --git a/dotfiles/misc/cc.sh b/dotfiles/misc/cc.sh deleted file mode 100644 index 876d255..0000000 --- a/dotfiles/misc/cc.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e - -CC="$(which cc)" - -which tcc >/dev/null - -if [ -h "$CC" ]; then - unlink "$CC" - ln -s "$(which tcc)" "$CC" -else - printf "$0: \$(which cc), $(which cc), is not a symbolic link\n" >/dev/stderr - exit 1 -fi diff --git a/dotfiles/misc/cdecho.sh b/dotfiles/misc/cdecho.sh deleted file mode 100644 index 7aeac50..0000000 --- a/dotfiles/misc/cdecho.sh +++ /dev/null @@ -1,4 +0,0 @@ -cde() { - cd $1 - printf "Entered %s.\n" $(pwd) -} diff --git a/dotfiles/misc/doas-sudo.sh b/dotfiles/misc/doas-sudo.sh deleted file mode 100755 index 83c9b60..0000000 --- a/dotfiles/misc/doas-sudo.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -e -source ./cdecho.sh - -if [ $1 = "arch" ]; then - mkdir -p $HOME/src/doas-sudo - cp PKGBUILD_doas-sudo $HOME/src/doas-sudo/PKGBUILD - - cde $HOME/src/doas-sudo - makepkg -si -fi diff --git a/dotfiles/misc/dsic.sh b/dotfiles/misc/dsic.sh deleted file mode 100755 index e237c5a..0000000 --- a/dotfiles/misc/dsic.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -SIC_C=$HOME/src/sic/sic.c -cp "$SIC_C" ./ - -sed -e 's/No channel to send to/No channel to which to send./' -e '170s/sic/dsic/' dsic.c - -diff sic.c dsic.c -[ "$(printf "No.\nYes.\n" | dmenu -p "Write changes?")" = "Yes." ] && mv "$SIC_C" "$SIC_C".bak && mv dsic.c "$SIC_C" diff --git a/dotfiles/misc/unscii-16-full.sh b/dotfiles/misc/unscii-16-full.sh deleted file mode 100755 index 7d1df9d..0000000 --- a/dotfiles/misc/unscii-16-full.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -x - -set -e - -[ "$(id -u)" = "0" ] \ - && LOCATION="/usr/share/fonts/unscii" \ - || LOCATION="$HOME/.fonts" - -mkdir -p "$LOCATION" - -curl "http://viznut.fi/unscii/unscii-16-full.otf" \ - >"$LOCATION/unscii-16-full.otf" -curl "http://viznut.fi/unscii/unscii-16-full.pcf" \ - >"$LOCATION/unscii-16-full.pcf" -curl "http://viznut.fi/unscii/unscii-16-full.ttf" \ - >"$LOCATION/unscii-16-full.ttf"