From 415c8fec63c6b9bcc4a511a5c0612b71fab5370c Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 5 Jan 2025 23:08:53 -0700 Subject: memester egg (was written a long time ago on a whim and never committed, may as well do it now) --- make | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'make') diff --git a/make b/make index ca3a84a..0c2d465 100755 --- a/make +++ b/make @@ -82,6 +82,9 @@ function main() { todo) grep -E 'TODO:|FIXME:' -- **/*.[ch] **/*.md ;; + me) + memes "$@" + ;; *) exec ./bin/build-all.sh "$@" ;; @@ -96,6 +99,23 @@ function make-docs () { done } +function memes () { + # memes + shift ; shift + if [ "$UID" = "0" ]; then + echo "Okay." + for l in . . . ' 10%' ' .' . . ' 20%' ' .' . . '' "!" '' . . . ' 35%' ' .' . . . . ' 69%' '' '' '' ' (nice)' '' '' '' '\b\b\b\b\b\b \b\b\b\b\b\b.' . . ' 95%' ' .' . . ' 99%' ' .' . . ' 99.5%' ' .' . . '' ' ?' '' ' .' . . ' 99.7%' ' .' . . '' '' ' processing...' '' ' .' . . ' 99.8%' ' .' . . '' . '' '' ' urgh!' '' ' .' . . '' '' '' ' #@*%!\a' '' '' ' .' . . '' '' ' PROCESSING!' '' ' .' '' . '' . '' . '' . ' 99.9% ' '' . '' . '' . '' '' '' ' HRRRNNGH!!' '' '' ' .' '' '' . '' '' ' 99.95%' '' '' ' .' '' '' '' . '' '' " j/k NOT!" ; do + t=$( printf '%.3f' $(( 500 + $RANDOM / 32 ))e-3 ) + sleep "$t" + echo -ne "$l" + done ; echo + echo "Make your own $*, dammit!" + else + echo "Make your own $*." + fi + exit 1 +} + # go to the repo root BASEDIR=$(dirname "$0") cd "$BASEDIR" || (echo "Error: Can't cd to basedir." && exit 1) -- cgit v1.2.3