aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2025-01-05 23:08:53 -0700
committerSelene ToyKeeper2025-01-05 23:08:53 -0700
commit415c8fec63c6b9bcc4a511a5c0612b71fab5370c (patch)
tree7f10a8bf3e14d761e38c54369f8cc5d186247baf
parentMerge branch 'pr90-SammysHP-wurkkos-ts10-lowfet' into trunk (diff)
downloadanduril-415c8fec63c6b9bcc4a511a5c0612b71fab5370c.tar.gz
anduril-415c8fec63c6b9bcc4a511a5c0612b71fab5370c.tar.bz2
anduril-415c8fec63c6b9bcc4a511a5c0612b71fab5370c.zip
memester egg
(was written a long time ago on a whim and never committed, may as well do it now)
Diffstat (limited to '')
-rwxr-xr-xbin/build-all.sh8
-rwxr-xr-xmake20
2 files changed, 22 insertions, 6 deletions
diff --git a/bin/build-all.sh b/bin/build-all.sh
index f2420a7..c2256e5 100755
--- a/bin/build-all.sh
+++ b/bin/build-all.sh
@@ -11,12 +11,8 @@ shopt -s globstar
function main {
- if [ "$#" -gt 0 ]; then
- # multiple search terms with "AND"
- SEARCH=( "$@" )
- # memes
- [ "$1" = "me" ] && shift && shift && echo "Make your own $*." && exit 1
- fi
+ # multiple search terms with "AND"
+ [ "$#" -gt 0 ] && SEARCH=( "$@" )
# TODO: detect UI from $0 and/or $*
UI=anduril
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)