src.hhvn.uk > hhvn.uk-scripts > commit > cb1e27daaf675230563399ec447f322704f2afd4

scripts that power hhvn.uk
Log | Files | Refs | README

commit cb1e27daaf675230563399ec447f322704f2afd4
parent 216202e2cdff9623f815ac998c1b865168ff1583
Author: Hayden Hamilton <hayden@hhvn.uk>
Date:   Sun, 24 May 2026 19:57:24 +0100

Add a make target to mark all scripts executable

Diffstat:
MMakefile | 3+++
AMakeperms.rc | 8++++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,6 +4,9 @@ BIN = $(PREFIX)/bin clean: @./Makeclean.rc $(BIN) +perms: + @./Makeperms.rc + install: @./Makeinstall.rc $(BIN) diff --git a/Makeperms.rc b/Makeperms.rc @@ -0,0 +1,8 @@ +#!/bin/rc + +for (f in `$nl{find . -type f ! -name 'Make*' | grep -v '/\.' | sed 's/^\.\///'}) { + if (!test -x $f && head -n1 < $f | grep '^#!' >/dev/null) { + echo CHMOD +X $f + chmod +x $f + } +}